I have added a checkbox to the \"Additional Tasks\" page of an InnoSetup script with
[Tasks]
Name: \"StartMenuEntry\" ; Description: \"Start my app when Wind
Great answer above. Gave me just what I needed.
I had a case where I have a bunch of secondary installers that I used the 'checkonce' option on, but I wanted them to be re-checked if the folder was missing (e.g. the user wiped out the install folder manually), e.g.
[Tasks]
Name: "InstallPython" ; Description: "Install Python" ; Flags: checkedonce
Name: "InstallNPP" ; Description: "Install Notepad++" ; Flags: checkedonce
[Code]
procedure CurPageChanged(CurPageID: Integer);
var
ItemIx: Integer;
begin
if CurPageID = wpSelectTasks then begin
if not DirExists(ExpandConstant('{app}')) then begin
for ItemIx := 0 to (WizardForm.TasksList.Items.Count - 1) do
WizardForm.TasksList.Checked[ItemIx] := True;
end
end
end;