JConstantine
JConstantine

Reputation: 1070

How can I add/not add a shortcut to an uninstaller depending on the Windows version in Inno Setup?

According to

Inno Setup Start menu uninstall shortcut is not shown on Windows 10

I should not add a shortcut to an uninstaller to the Start menu, on any version of Windows. But still, can I somehow decide whether to create the shortcut or not depending on the version of Windows?

Upvotes: 1

Views: 56

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202642

All Inno Setup section entries have MinVersion and OnlyBelowVersion parameters, which you can use to control on what version of Windows the entry gets used.

To create an icon on Windows below 8 only, use:

[Icons]
Name: "..."; Filename: "..."; OnlyBelowVersion: 6.2

Though again, as the link says, do not clutter the Start menu with uninstall icons. They should not be there, no matter what version of Windows the user is using.

Upvotes: 2

Related Questions