Archive: icon problems


icon problems
I am the using the Nsis 2.0b0 and it is the last Friday build. I have used a custom icon and when it complies, it said the installer and uinstaller icon file mismatch. Hmm... What can I do now? cos, it works on earlier build.


You should use the same image formats in your installer and uninstaller icon. :D

I think that the default icons use other formats in the new build.


I have a similar problem. However I use the exact same icon (one and the copy of it) as normal and uninst icons.
It seems that NSIS only accepts icon files in the format as seen for example in the beta0 Contrib\Icons\adni18-installer-A.ico icon file. It contains a lot of unnecessary images though (extra sizes which aren't available - and upscaling is ugly).

What is the correct format anyway for adding my own icons to NSIS?


NSIS accepts any icon format.
Please attach the installer and uninstaller (even though one is the copy of the other, attach both) so I can check it, and the script too.


Wow, kichik, you're either a highly sophisticated answerbot, or you're just that fast ;)

Thanx for the quick answer. I attach the files zipped up.


I wish I had a bot that knows all the answers :D
I just look in the forum once in a while when working on the computer, that's all...

To solve your problem for now, use !define MUI_ICON and !define MUI_UNICON as you should have done in the first place. I will look into why it doesn't take the latest icons defined in the script using Icon and UninstallIcon.


Well, RTFM as always :)

With !DEFINE it works just fine. I guess the problem with the format is that the Icon or UninstallIcon desn't match the format of the ones set within the MUI macros. I guess it's not a feature tho ;)

Thanx, N


Fixed in the latest CVS version.
It was a nice feature :(