I'm probably doing something grievously stupid, but I can't seem to see it. I have a number of !defines for various MUI options I want to implement - only one works.
For the images I've tried relative paths, $EXEDIR, and full paths, but no images ever show up. Header image is 24bpp, 150x57 and does exist.
Out of all the !defines in the script, only the finish run options appear to work. None of the other image/text/abort options work.
I've looked a gobs of postings on this and the script looks like it *should* work. I'm on v2.16. For almost all of these to fail implies I've done something silly or just have the wrong version of something! I don't see anything alarming in the log file. When I launch, the header area is empty (white) as is the central region where the side bar graphic would go (on the left) as well as the text area (except for the last page).
Any clues?
Thanks all!
SetCompressor lzma
Var MUI_TEMP
!include "defines.nsh"
!include "MUI.nsh"
Name "${APPNAME}"
InstallDir "$PROGRAMFILES\${APPNAME}"
OutFile "${OUTPUT_FILE}.exe"
CRCCheck Off
SetPluginUnload alwaysoff
SetDateSave on
SetDatablockOptimize on
XPStyle on
;-------------------------------- install Pages Settings
;read this might help. Didn't.
;!insertmacro MUI_LANGUAGE English
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "c:\projects\root\gameinstaller\header\win.bmp"
; !define MUI_WELCOMEFINISHPAGE_BITMAP 'win.bmp'
!define MUI_WELCOMEPAGE_TITLE "Test"
!define MUI_WELCOMEPAGE_TEXT "Why won't this display - My kingdom for a bleedin' horse?!!?!!"
!define MUI_WELCOMEPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_TITLE_3LINES
!define MUI_ABORTWARNING
; These next two work, nothing else does
!define MUI_FINISHPAGE_RUN "$INSTDIR\${RUN_FILE}"
!define MUI_FINISHPAGE_RUN_TEXT "Run ${APPNAME}"
!insertmacro MUI_PAGE_WELCOME
!ifdef EULA_FILE
!insertmacro MUI_PAGE_LICENSE "${EULA_FILE}"
!else
!insertmacro MUI_PAGE_LICENSE "EULA.rtf"
!Endif
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
;--------------------------------Uninstall Pages Settings
!define MUI_WELCOMEPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_TITLE_3LINES
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
Problems getting Modern UI defines working
2 posts