Old 14th August 2010, 06:56   #1
TheGrudge
Junior Member
 
Join Date: Jul 2010
Posts: 9
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?
TheGrudge is offline   Reply With Quote
Old 14th August 2010, 08:59   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
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
Takhir is offline   Reply With Quote
Old 17th August 2010, 09:50   #3
TheGrudge
Junior Member
 
Join Date: Jul 2010
Posts: 9
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?
TheGrudge is offline   Reply With Quote
Old 17th August 2010, 10:42   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
If you read the MUI manual you'll find you have to repeat the same defines again for the uninstaller.

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump