Skip to content
⌘ NSIS Forum Archive

Installation Icons (NSIS)

8 posts

p3k_me#

Installation Icons (NSIS)

I tried 100 different ways to use my own icons in my installer but nothing worked.
I have attached the icons I created.
Please tell me what is wrong.

Thank you very much in advance.

-pek
JasonFriday13#
It works for me. Have you tried putting your icons in the '${NSISDIR}\contrib\graphics\icons' directory and including them this way?

Icon "${NSISDIR}\contrib\graphics\icons\shortcutter-install.ico"
UninstallIcon "${NSISDIR}\contrib\graphics\icons\shortcutter-uninstall.ico"

If your installer is in the root directory and is writing your uninstaller to $EXEDIR\Uninstall.exe, it will fail. Sorry, I don't see any other way of fixing it (the icons are fine).
Yurik#
Is it possible to use different icons for branding image (something that by default is NSIS icon at the right of the installer header) and for installer exe icon?
CancerFace#
@Yurik
It is however you will have to add the icons to the installer using something like ResHacker, then get a handle on the installer itself, read the icon, get a handle on the window where you want the icon to appear and replace it with the new icon. I posted a Wiki page a while ago along those lines.
CF
Yurik#
Thank you, CancerFace!
Hopefully, I've found that it is enough for my installer to use MUI_ICON along with MUI_HEADERIMAGE_BITMAP.
CancerFace#
I think I was too fast to reply in the first place as I misread your question. I thought you wanted to change the icon and not the branding image. My bad. The method I referred you to can add more icons and show them.
CF
LukaszT#
it works

Sup
I have changed my icon using that code and it worked 🙂
I can use so many icons for the program.exe 🙂