Archive: Problem with Header and Wellcome / Finish images


Problem with Header and Welcome / Finish images
First, I would like to apologize if this issue was answered earlier. I searched all the afternoon but failed to find an answer to my specific problem.

I want to put a custom image both in the header and welcome / finish pages. Both images are indexed 8 bit bitmaps with the same size as the original images provided with the NSIS 2.22


; MUI ------
!include "MUI.nsh"
!include "Sections.nsh"

; MUI Settings
!define MUI_ABORTWARNING
!define MUI_BGCOLOR "FFFFFF"
!define MUI_ICON "Archivos Comunes/Iconos/gsp32.ico"
!define MUI_UNICON "Archivos Comunes/Iconos/ugsp32.ico"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "Archivos Comunes/${PRODUCT_FOLDER}/zumleft.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "Archivos Comunes/${PRODUCT_FOLDER}/zumbig.bmp"
;!define MUI_FINISHPAGE_NOAUTOCLOSE

; Welcome page
!insertmacro MUI_PAGE_WELCOME

; License page
!define MUI_LICENSEPAGE_RADIOBUTTONS

!insertmacro MUI_PAGE_LICENSE "Archivos Comunes/${PRODUCT_FOLDER}/license.txt"

Page custom PageReinstall PageLeaveReinstall

; Directory page
!insertmacro MUI_PAGE_DIRECTORY

; Instfiles page
!insertmacro MUI_PAGE_INSTFILES

; Finish page
!insertmacro MUI_PAGE_FINISH

; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES

; Language files
!insertmacro MUI_LANGUAGE "English"

ReserveFile "pokerinstaller.ini"
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS

ReserveFile "Archivos Comunes\flash9\FlashPlayer9.msi"

; MUI end ------
This is the MUI section of the installer I use. The problem is that when I'm compiling, this error log shows up:

!include: closed: "C:\Archivos de programa\NSIS\Include\Sections.nsh"
!define: "MUI_ABORTWARNING"=""
!define: "MUI_BGCOLOR"="FFFFFF"
!define: "MUI_ICON"="Archivos Comunes/Iconos/gsp32.ico"
!define: "MUI_UNICON"="Archivos Comunes/Iconos/ugsp32.ico"
!define: "MUI_HEADERIMAGE"=""
!define: "MUI_HEADERIMAGE_BITMAP"="Archivos Comunes/ZUM/zumleft.bmp"
!define: "MUI_WELCOMEFINISHPAGE_BITMAP"="Archivos Comunes/ZUM/zumbig.bmp"
!insertmacro: MUI_PAGE_WELCOME
!insertmacro: end of MUI_PAGE_WELCOME
!define: "MUI_LICENSEPAGE_RADIOBUTTONS"=""
!insertmacro: MUI_PAGE_LICENSE
!insertmacro: end of MUI_PAGE_LICENSE
Page: custom (creator:PageReinstall) (leave:PageLeaveReinstall)
!insertmacro: MUI_PAGE_DIRECTORY
!insertmacro: end of MUI_PAGE_DIRECTORY
!insertmacro: MUI_PAGE_INSTFILES
!insertmacro: end of MUI_PAGE_INSTFILES
!insertmacro: MUI_PAGE_FINISH
!insertmacro: end of MUI_PAGE_FINISH
!insertmacro: MUI_UNPAGE_INSTFILES
!insertmacro: end of MUI_UNPAGE_INSTFILES
!insertmacro: MUI_LANGUAGE
File: "Archivos Comunes/ZUM/zumbig.bmp" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in macro MUI_WELCOMEFINISHPAGE_INIT on macroline 5
Error in macro MUI_GUIINIT on macroline 2
Error in macro MUI_FUNCTION_GUIINIT on macroline 4
Error in macro MUI_INSERT on macroline 11
Error in macro MUI_LANGUAGEFILE_BEGIN on macroline 4
!include: error in script: "C:\Archivos de programa\NSIS\Contrib\Modern UI\Language files\English.nsh" on line 9
Error in macro MUI_LANGUAGE on macroline 5
Error in script "\\Wolverine\poker\Installers\ZUMPokerInstallerMod.nsi" on line 68 -- aborting creation process
It seems like something is missing, if I make the installer without calling the bitmaps, it compiles an runs smoothly. But as soon as I put them on, the same error shows up. The images are on the folder I put them and I even tried different folders. The only one that worked was the NSIS default ones.

I need to put the images in a different folder, but I do not know what is missing there.
Thanks
Alex

Is the ${PRODUCT_FOLDER} defined on the top?

I guess you use the backslashes in path properly :)

Did you try to add the full qualified path e.g.
!define MUI_HEADERIMAGE_BITMAP "D:\Archivos Comunes\${PRODUCT_FOLDER}\zumleft.bmp"


Thanks a lot, it was the backslash. I don't know why in every other parameter I was able to use /, but with these parameters it asks for \.

Alex