Archive: Graphics


Graphics
hey folks,
can someone please help me to change the graphics on my installer. I want to swap the graphics with my own, not just the blue wizard screen but also the nsis icon on the license page and the same on the uninstaller.

Thanks

John

P.S. I'm sorry if this has been posted before but what I did find on the subject might as well have been in Latin :-)


If you are using MUI read it's documentation: chapter 2 - Interface Configuration.


I already have. I can change the splash screen but nowhere in the documentation does it tell me where to change the round icon image that appears at the top of the license screen and at the top of all the screens in the top left corner of the title bar.


!define MUI_ICON - to change the icon for the installer (displayed in title bar)

This defines MUI_HEADERIMAGE, MUI_HEADERIMAGE_BITMAP, MUI_HEADERIMAGE_UNBITMAP, MUI_HEADERIMAGE_RIGHT allow you to change

round icon image that appears at the top of the license screen and at the top of all the screens
for installer and uninstaller pages.

ADD

For welcome/finish pages define this MUI_WELCOMEFINISHPAGE_BITMAP, MUI_UNWELCOMEFINISHPAGE_BITMAP.

Okay so now I know what to look for - that's great thanks.


okay so I understand what needs entering in my script but where do I put these:

!insertmacro MUI_DEFAULT MUI_UI "${NSISDIR}\Contrib\UIs\modern.exe"
!insertmacro MUI_DEFAULT MUI_UI_HEADERIMAGE "${NSISDIR}\Contrib\UIs\modern_headerbmp.exe"
!insertmacro MUI_DEFAULT MUI_UI_HEADERIMAGE_RIGHT "${NSISDIR}\Contrib\UIs\modern_headerbmpr.exe"
!insertmacro MUI_DEFAULT MUI_UI_COMPONENTSPAGE_SMALLDESC "${NSISDIR}\Contrib\UIs\modern_smalldesc.exe"
!insertmacro MUI_DEFAULT MUI_UI_COMPONENTSPAGE_NODESC "${NSISDIR}\Contrib\UIs\modern_nodesc.exe"
!insertmacro MUI_DEFAULT MUI_ICON "C:\IMP\Images\icons\softwareicon.ico"
!insertmacro MUI_DEFAULT MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
!insertmacro MUI_DEFAULT MUI_COMPONENTSPAGE_CHECKBITMAP "${NSISDIR}\Contrib\Graphics\Checks\modern.bmp"
!insertmacro MUI_DEFAULT MUI_LICENSEPAGE_BGCOLOR "/windows"
!insertmacro MUI_DEFAULT MUI_INSTFILESPAGE_COLORS "/windows"
!insertmacro MUI_DEFAULT MUI_INSTFILESPAGE_PROGRESSBAR "smooth"
!insertmacro MUI_DEFAULT MUI_BGCOLOR "FFFFFF"
!insertmacro MUI_DEFAULT MUI_WELCOMEFINISHPAGE_INI "${NSISDIR}\Contrib\Modern UI\ioSpecial.ini"
!insertmacro MUI_DEFAULT MUI_UNWELCOMEFINISHPAGE_INI "${NSISDIR}\Contrib\Modern UI\ioSpecial.ini"
!insertmacro MUI_DEFAULT MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\win.bmp"
!insertmacro MUI_DEFAULT MUI_UNWELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\win.bmp"
I'm using the installer.NSI included in the program but under what heading do I paste and alter these settings?

These are not macroses. These are defines. So first change !insertmacro -> !define.
Second

Interface settings should be set before inserting page macros. Page interface settings apply to all pages of a certain type.
See examples from NSISDIR\Examples\Modern UI