Archive: MUI_ICON Error - Setting my own icon


MUI_ICON Error - Setting my own icon
Hi all,

I am using the below code to change the icon at my installer pages:

!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\DB-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\DB-uninstall.ico"

However, I get the following error:

Error while setting icon to "C:\Program Files\NSIS\Contrib\Graphics\Icons\DB-install.ico": invalid icon file


My icon is actually a *.bmp image which I save with the *.ico extension to make it an icon. Both install and uninstall images are sized: 36 X 35 with a size of 3.74 KB each. Please advice

Thanks.


A .bmp file renamed to .ico is not a valid icon file. Use a graphical editing application to save the .bmp as a real .ico.


thanks a lot..it works :)