Archive: Is it possible to have two branding images?


Is it possible to have two branding images?
I want to have a custom (branding) image on top and on the right of the installer dialog.
But I'm not able to set a IMGID with AddBrandingImage.
If I call AddBrandingImage twice, I end up with the same resource id (checked with Resource Hacker).

Actually this isn't a real branding image at all, we just want our company logo on top of the dialog and some decorative image on the right.

Maybe AddBrandingImage is the wrong way to do this? Any suggestions?


May be one of NSIS plug-ins can help. For example
http://nsis.sourceforge.net/EBanner_plug-in
http://nsis.sourceforge.net/AnimGif_plug-in


I have managed to add a BrandingImage, but now I can't see it in the uninstaller.
I added the following defines:

!define MUI_UNCUSTOMFUNCTION_GUIINIT brandingFunc
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "logo_side.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP_NOSTRETCH
!define MUI_UNWELCOMEPAGE_TITLE_3LINES
!define MUI_UNFINISHPAGE_TITLE_3LINES
!define MUI_UNFINISHPAGE_NOAUTOCLOSE

But I guess some of them are wrong, because I don't have the 3LINES_TITLE property (the text is cut off in the uninstaller).

To have the branding image in the installer, I added this macro:

!macro BIMAGE IMAGE PARMS
Push $0
GetTempFileName $0
File /oname=$0 "${IMAGE}"
SetBrandingImage ${PARMS} $0
Delete $0
Pop $0
!macroend

I added this to a function that is called brandingFunc:

Function brandingFunc
!insertmacro BIMAGE "logo.bmp" ""
FunctionEnd

This function on the other hand has been added like this:
!define MUI_CUSTOMFUNCTION_GUIINIT brandingFunc

Can I do the same for the uninstaller? Or does the uninstaller not know about the logo.bmp file?


If you read the MUI manual you'll find you have to repeat the same defines again for the uninstaller.

Stu