I use Inno Setup as extractor for my Portable software (Windows). I want in the line "Do not create a Start Menu folder" to be checked by default, so that if the user wants a folder in the start menu he must uncheck the check box. Thanks for your time and help, Alexei
Asked
Active
Viewed 79 times
1 Answers
0
Programatically check the respective checkbox component (WizardForm.NoIconsCheck).
You should do it on fresh installs only. For upgrades/reinstalls, you should keep the previous user selection (more so, now that Inno Setup does not even show the Select Start Menu Folder wizard page for reinstalls).
procedure InitializeWizard();
begin
if not IsUpgrade then
WizardForm.NoIconsCheck.Checked := True;
end;
For the IsUpgrade function, see my answer to
Can Inno Setup respond differently to a new install and an update?
Martin Prikryl
- 167,268
- 50
- 405
- 846
-
You are welcome. Though on Stack Overflow, we thank by [accepting the answer](//stackoverflow.com/help/someone-answers). – Martin Prikryl Mar 19 '19 at 06:15