The /NOICONS option seems no longer work in version 6.2.0

145 views
Skip to first unread message

Alain MILANDRE

unread,
Oct 12, 2021, 11:31:02 AM10/12/21
to innosetup
Hello,

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?

Thank you for your help

Regards,

Gavin Lambert

unread,
Oct 12, 2021, 5:43:03 PM10/12/21
to inno...@googlegroups.com
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.

Alain MILANDRE

unread,
Oct 13, 2021, 3:46:28 AM10/13/21
to innosetup
Thanks Gavin,

You are indeed absolutely right and I admit that I had completely forgotten this detail.
In fact, my problem was in the control function of checking the activation of the task and not in the handling of the command line option /NOICONS.
However, your feedback allowed me to shed light on the origin of my problem and I thank you very much for your help.

Reply all
Reply to author
Forward
0 new messages