Skip to content
⌘ NSIS Forum Archive

NSIS: header images and sidebar images

7 posts

cappie#

NSIS: header images and sidebar images

I'm trying to figure out how to add a header image with a custom width (not the standard 150x57 pixels).. my logo is a bit wider.

I'm also trying to figure out how I can add an image on the left-hand side of the installer window during the installation (product logo or something).

Can someone help me with accomplishing this in the Modern GUI interface?

Thanks in advance
Jnuw#
Cappie,

The commands to add the header and left panel images are as follows:
!define MUI_WELCOMEFINISHPAGE_BITMAP "Panel.bmp"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "Header.bmp" 
As far as your wider image, i would re-size it first to the normal 150x57 size. Also the image on the left hand side, i believe that will only be present on the Start and Finish pages.

Hope this helps.
Afrow UK#
You need to use AddBrandingImage, but I think that it'll add one throughout the whole installer.
The only other alternative is that you add a new bitmap control into the modern.exe UI with Resource Hacker.

-Stu
cappie#
Originally posted by Jnuw
Cappie,

The commands to add the header and left panel images are as follows:
!define MUI_WELCOMEFINISHPAGE_BITMAP "Panel.bmp"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "Header.bmp" 
As far as your wider image, i would re-size it first to the normal 150x57 size. Also the image on the left hand side, i believe that will only be present on the Start and Finish pages.

Hope this helps.
Yeah! I'm going to try that in a few minutes, thnx!

Where can I find which things I can add to an .nsi install script? I didn't remember seeing MUI_WELCOMEFINISHPAGE_BITMAP in the help...

Thanks again for the help 🙂
Jnuw#
Program Files\NSIS\Contrib\Modern UI\Readme.html

Should be linked to in your start button group for NSIS.
Pharaoh Atem#
Umm, I found this topic and I tried this, but my headerbitmap was on the left instead of the right... How do I fix that? I am using the same code as suggested...
JasonFriday13#
!define MUI_WELCOMEFINISHPAGE_BITMAP "Panel.bmp" 
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_RIGHT
!define MUI_HEADERIMAGE_BITMAP "Header.bmp"