40

I am struggling with getting Inno Setup to set the check box to true whether a desktop icon should be created. The documentation has not been any helpful concerning this issue as well as Googlism and Stackoverflow.

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

My thought was a value like "checked" for "Flags" but the documentation told me, that Flags isn't responsible for this.

mghie
  • 32,028
  • 6
  • 87
  • 129
mamachanko
  • 886
  • 1
  • 7
  • 15

2 Answers2

66

They are checked by default, remove the Flags: unchecked.

Alex K.
  • 171,639
  • 30
  • 264
  • 288
  • Thank you, very much. Since this option doesn't not have an effect on the setup routine on my workstation, at least it does on all others we checked on. Cheers! – mamachanko Apr 13 '10 at 08:06
  • 7
    Your welcome, it may be different on your machine because of `UsePreviousSetupType` which *may be remembering your last choice. – Alex K. Apr 13 '10 at 09:19
  • 2
    I found that it didn't work on my workstation in the first place as well, but it seems that Inno Setup remembers values of earlier installations. Uninstall your setup, reinstall and you should be fine. – robbash Jun 05 '13 at 07:01
16

At startup Setup will look in the registry to see if the same application is already installed, and if so, it will use the task settings of the previous installation as the default settings presented to the user in the wizard.

To prevent that behavior use UsePreviousTasks=no.

Documented here.