I want to execute some code if a user checks a corresponding checkbox during the install. From reading the help file, it looks like the only way to use the task is to associate it with an entry in the Files/Icons/etc. section. I’d really like to associate it with a procedure in the Code section. Can this be done and if so, how?
I want to execute some code if a user checks a corresponding checkbox during
Share
You do that by adding a custom wizard page that has check boxes, and execute the code for all selected check boxes when the user clicks "Next" on that page:
The check boxes can either be standard controls or items in a list box, see the Inno Setup documentation on Pascal Scripting for details.
If you want your code to be executed depending on whether a certain component or task has been selected, then use the
WizardIsComponentSelected()andWizardIsTaskSelected()functions instead.