Archive: header image for single page


header image for single page
Hi,

I would like to have a banner image for all dialogs in my installer except for one. For this dialog I'd like to use a different bmp. Is this possible using MUI and if so how?

I am using the MUI_HEADERIMAGE for the default / constant banner and that works. I have tried to use several other options like:

GetDlgItem $0 $hwndparent 0x414
SetBrandingImage /IMGID=$0 /RESIZETOFIT "other.bmp"

and this works, but the image is layered behind the default image (z order is off).

I've also tried: !define ${MUI_HEADERIMAGE_BITMAP} "other.bmp" and this too fails.

What is the best way to accomplish this?

Thanks so much for the help,
mike


your control ID may be incorrect? You're accessing 0x414, which is ID 1044. Peeking at MUI2's interface.nsh, it looks like you'd want ID 1046 (0x416).
( oddly enough, I think you should have been fine using $mui.Header.Image - but that's getting yet another control ID; 1039.. no idea which one that actually is. )

When in doubt... use WinSpy++ or similar to find out what control is what.

Edit: Although MUI2 doesn't seem too happy about SetBrandingImage at all (lack of branding image). ${NSD_SetImage} to the rescue for that, then.