On 13/10/2021 04:31, Alain MILANDRE wrote:
> I have an installer for which we sometimes use the / NOICONS option
> during an automated deployment.
> However, since the switch from InnoSetup 5 to InnoSetup 6.2.0 this
> option no longer seems to work.
>
> *_The icon management section in my script is as follows_*:
> [Icons]
> Name: {group} \ MyApp; Filename: {app} \ MyApp.exe; WorkingDir: {app}
> Name: {group} \ {cm: UninstallProgram, MyApp}; Filename: {uninstallexe};
> WorkingDir: {app}
> Name: {commondesktop} \ MyApp; Filename: {app} \ MyApp.exe; Tasks:
> desktopicon; WorkingDir: {app}
>
> *_And my command line contains this_*:
> mysetup.exe / VERYSILENT / SUPPRESSMSGBOXES / NOICONS / DIR = C: \ MyAppDir
>
> Shouldn't icons be missing from my desktop with this command line?
No, /NOICONS only disables entries that use {group} (and don't have a
Task), not any others.
If you want to skip the desktop icon then you will need to use the
/TASKS= or /MERGETASKS= parameters.
Also, your mail client appears to be adding spaces in very silly places.
You should probably fix that.
Finally, modern Windows style guidelines strongly recommend not creating
an uninstall shortcut at all (that's what the control panel is for), and
that if this means that you would only have one shortcut in your {group}
then you should just install the icon directly to {commonprograms}
without a group. Although if you change this then /NOICONS will no
longer apply to it, so you'll want to link it to a Task if you want it
to be optional.