How can I set my uninstall icon to be different than my install icon using Releasy / Ocra / InnoSetup

184 Views Asked by At

I am building an installer for a Ruby application using releasy. It creates an installer that creates a windows executable(i.e. launcher) for the application and one for the uninstaller. I would like to use different icons for the launcher and the uninstaller. I can't quite figure out how to do this. In my releasy project I think I have told it about the icon I wan't to use...

Releasy::Project.new do
  files ['*.rb', 'media/splash.png', 'media/uninstall.ico']
  ...
end

I have redefined WindowsInstaller#generate_installer_script to read,

UninstallDisplayIcon={app}\\uninstall.ico

in the relevant place.

Still no joy. I'm guessing that I'm not putting my icon in a place where it can be used but I'm not really sure what else to try doing.

1

There are 1 best solutions below

0
On

UninstallDisplayIcon affects the icon shown in the Programs and Features control panel.

If you are using an [Icons] entry to create a separate shortcut to the uninstaller (which is against Windows style guidelines, but some people do it anyway), you can set the IconFilename of this to point at a custom icon.

There is no way to change the icon of the unins000.exe file itself -- this will always be the SetupIconFile, same as the installer. (This is because the uninstall engine uses the same resources as the install engine.)