Archive: Mui_headerimage_unbitmap


Mui_headerimage_unbitmap
Had a quick look through the forum but didn't notice if anyone else had picked up on this or if I was going mad! =)

NSIS 2.0b4

When using !define MUI_HEADERIMAGE_UNBITMAP you need to also specify the bitmap used. In the documentation it states the default is: "Default: Installer header bitmap" which I assumed to be the bitmap specified in !define MUI_HEADERIMAGE_BITMAP, but it causes compiler errors, ie:

Example 1
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\win.bmp"
!define MUI_HEADERIMAGE_UNBITMAP ""

Example 2
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\win.bmp"
!define MUI_HEADERIMAGE_UNBITMAP "${NSISDIR}\Contrib\Graphics\Header\win.bmp"

Example 1 errors while example 2 works, but reading the documentation I thought that Example 1 should work.


It uses the default if the setting is not set, so you should remove MUI_HEADERIMAGE_UNBITMAP.


Aha! I new I was mad. :igor: