Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup: Control panel icon does not show

Tags:

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.

like image 810
Sarah Weinberger Avatar asked Dec 26 '13 23:12

Sarah Weinberger


People also ask

How do I change the icon on my Inno?

As you know the application icon is built into the .exe file. The Inno Setup cannot modify the .exe files. And there's no other way to override the application icon by an external one. You have to edit the .exe file yourself, before building the installer.

How do I Setup an inno compiler?

Go to Menu, Project, then Compile to compile and create the setup file. This will create a complete installer. Run the Setup and your application will be installed correctly. Innosetup offers an awesome alternative to create great looking Installers for free.

Is Inno Setup free?

Inno Setup is a free installer for Windows programs by Jordan Russell and Martijn Laan. First introduced in 1997, Inno Setup today rivals and even surpasses many commercial installers in feature set and stability.


1 Answers

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.

like image 140
Sarah Weinberger Avatar answered Sep 22 '22 12:09

Sarah Weinberger