1

How to create checkboxes at task page to download and install Microsoft Visual C++ Redistributable from URLs?

For example these:

I saw this but I want to download it from URL and install it without adding setup to main program installer: How to create checkboxes at Inno Setup finished page?

I also want to delete the setups from these programs (Visual C++ Redistributable) if they are downloaded.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Knight
  • 25
  • 4

1 Answers1

1

Start here:
Install file from Internet in Inno Setup

All that you need to modify is to run the code in NextButtonClick if a task was selected only (use WizardIsTaskSelected function).

if (CurPageID = wpReady) and WizardIsTaskSelected('InstallVCRedist') then begin
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992