Archive: Change icon


Change icon
Im a completly dumbass when it comes to NSIS. I always use Zip2Exe when i use NSIS. I just want to change the def. install icon. If someone could give me a code or two?

I would be happy. Thanks.


Assuming you're using the MUI you should define, you should define MUI_ICON and MUI_UNICON before you insert any page macro. If you're not using the MUI, just use Icon and UninstIcon.

Of course you should do it in the .nsh files you've already found.


Maybe this will help

Icon "NAME OF ICON.ico"


You might want to take a look at this section

Also there is a readme located in this folder
C:\Program Files\NSIS\Contrib\Modern UI\Readme.html

i think it would go somthing like this

!define MUI_ICON $NSISDIR\Contrib\Graphics\Icons\arrow2-install.ico
!define MUI_UNICON $NSISDIR\Contrib\Graphics\Icons\arrow2-uninstall.ico

?
Try this without using the define in the install
This would serve you well :) aka my methode

C:\Program Files\NSIS\Contrib\Modern UI\System.nsh
online
105 and 106
!insertmacro MUI_DEFAULT MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\llama-blue.ico"
!insertmacro MUI_DEFAULT MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\llama-grey.ico"

you can change the Defualts here :)
P.S. Make sure your icons match size and color patterns
the install and the uninstall icon must be the same
size and colors.