I use Inno Script Studio to build the installer, so far very successfully, since Inno Setup is a great package.
However, I want to add a warning page that displays when the user cancels an important task. I thought it would be just a check. After some Googling, I realized that this would require some Pascal scripts - something I, unfortunately, do not know (evidence below) ...
begin if not IsTaskSelected('ImportantTask') then WarningPage := CreateOutputMsgPage(wpSelectTasks, 'Caution', 'Please read the following important information before continuing.', 'You have not selected the ImportantTask option. Click "Back" to reselect ImportantTask, or click "Next" to continue at your own risk.'); end;
No wonder this didn't work.
Here are the requirements:
- An important task should be checked by default.
- If the Important task is not selected, select the Warning check box with the Risk Acknowledgment checkmark.
- If the risk confirmation flag is not blocked, disable the Next button.
I did not want the large [Code] section to appear in the end, but perhaps there is no other option.
Thanks in advance for your help.
source share