Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change the uninstall icon in Inno Setup?

From what i've read it looks like that is no parameter that allows you to change the uninstall icon:

[Setup]: UninstallIconFile
Description:
Obsolete in 5.0.0. As Setup and Uninstall have been merged into a single executable, setting a custom icon for Uninstall is no longer possible.

So, is there another way to change this icon? I'm asking because if, for example you have only your launch exe, an readme and the uninstall, users may accidentally click on the uninstall instead of lauch, which is a little bit annoying.

Thanks.

like image 750
Cosmin Avatar asked Mar 02 '11 16:03

Cosmin


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 create a desktop shortcut for Inno?

In [Files] section, you install your giotto. ico to the application folder (you may want to install the icon only when the desktopicon task is selected). In [Icons] section, you create the desktop icon using the installed giotto.


1 Answers

To change the uninstall executable icon, you have to change the installer executable icon, as it is the same exe, using the SetupIconFile setup section directive.

For example:

SetupIconFile=MyProgSetup.ico

You can also change the Icon that is displayed on the control panel, setting the UninstallDisplayIcon setup section directive

For example:

UninstallDisplayIcon={app}\MyProg.exe,4
;or
UninstallDisplayIcon={app}\Uninstaller.ico
like image 145
jachguate Avatar answered Oct 15 '22 04:10

jachguate