Inno Setup: Control panel icon does not show

Viewed 11253

I have an Inno Setup project. Everything is fine, but I do not see the application icon in the "Programs and Features" control panel area. I do see the icon everywhere else.

The script file does have the following:

[Setup]
SetupIconFile={#MySetupImageIco}

Is there something else that I need to set to get the application icon to show in the Programs and Features control panel applet? I am testing against Windows 8.1.


UPDATE:
Based upon comments, I tried setting in my script:

UninstallDisplayIcon={#MySetupImageIco}

Sadly, that did not yield the icon in the Add/Remove aka Programs and Features Control Panel applet.


UPDATE #2:
The winning solution is:

UninstallDisplayIcon={app}\{#MyAppExeName}

Naturally, there has to be a #define MyAppExeName "whatever.exe" above that at the top of the script. Interesting that when I specified the path to the ico file, I had no success. Inno Setup for Windows 8 and 8.1 wants what I just said. Windows 7 works with UninstallDisplayIcon and specifying the path to the ICO or without that, just Windows 8 and 8.1 are a bit different.

5 Answers

In Windows 11, you can use the icon file itself.

UninstallDisplayIcon=C:\Path\to\ico\file does the thing.

Worked for me.

Related