Inno Setup: Control panel icon does not show

Sarah Weinberger picture Sarah Weinberger · Dec 27, 2013 · Viewed 8.8k times · Source

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.

Answer

Sarah Weinberger picture Sarah Weinberger · Jan 3, 2014

Solution is:

Add

[Setup]
UninstallDisplayIcon={app}\{#MyAppExeName}

Specifying the actual ico file did not work, but this entry did.

I tested against Windows 8/8.1. Windows 7 works without this line.