|
|
#1 |
|
Junior Member
|
Can't get AddBrandingImage/SetBrandingImage to work
Hello,
I'm trying to insert a branding image at the top of the installer without success. I used AddBrandingImage to reserve space for the image and this part works. But in my main installing section I'm using SetBrandingImage title.bmp but the bitmap isn't being displayed although it resides in the same directory where the installer is located in. Another question, isn't it possible to link the bitmap to the installer instead of the need to ship it? EDIT: Why do I have to set the branding image in a section? Isn't it possible to set the branding image for the whole installer? Thanks in advance, Nils |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Sep 2004
Location: Wisconsin, US
Posts: 258
|
If you are using the MUI (Modern User Interface) you just need to add these 3 lines below your "!include "MUI.nsh"" line:
code: Hope this helps. Jnuw |
|
|
|
|
|
#3 |
|
Junior Member
|
I didn't use the MUI but tried it with the same result. Space is reserved for the image, but it isn't being displayed.
Any other tips? |
|
|
|
|
|
#4 |
|
Debian user
(Forum King) Join Date: Jan 2003
Location: Arch land
Posts: 4,917
|
How about show us your code, what you have so we can see what's wrong
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE. * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE. |
|
|
|
|
|
#5 |
|
Junior Member
|
No problem, here it is:
code: The bitmap has a size of 342x124 pixels, 24bit. Many thanks, Nils |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
MUI_HEADERIMAGE_BITMAP would most likely require you to put your bitmap images in $PLUGINSDIR, not $EXEDIR.
If your bitmap resides in the same folder as your installer, you still need to tell the installer that it is there by using the $EXEDIR constant, e.g. SetBrandingImage `$EXEDIR\title.bmp` or by setting the working folder to $EXEDIR with SetOutPath first. Without calling SetOutPath, the working directory is usually $DESKTOP (which is the highest level directory in the directory hierarchy). -Stu |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|