Archive: modernUI error with latest release


modernUI error with latest release
I made a very basic script and I've got those errors:

Variable "MUI_TEMP1" not referenced or never set, wasting memory!
Variable "MUI_TEMP2" not referenced or never set, wasting memory!
But i'm not using those! And I don't have those errors with NSIS 2.27 :igor: Also installer icon is not set correctly and so instead of my icon i've got the classic one...

Here is the code:


Name "AD"

# Included files
!include MUI.nsh

# Defines
!define VERSION "v1.0"
!define COMPANY "Ct"
!define URL "www.mysite.fr"
!define INSTALLEXE "install-art.exe"

# Attributs de l'installation
OutFile ..\install-art-tracs2.exe
InstallDir "$TEMP"
CRCCheck on
XPStyle on

ShowInstDetails hide
ShowUninstDetails hide

BrandingText "CTechnologie"

# Compression de l'installeur
SetCompress auto

# mode silencieux ou non par défaut
SilentInstall normal

# Pages ModernUI d'installation
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "pictures\header.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "pictures\wizard.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "pictures\wizard.bmp"
!define MUI_ICON "pictures\art-install.ico"
!define MUI_UNICON "pictures\art-uninstall.ico"


# Section principale d'installation de NSIS
Section -Main
# Dossier d'installation
SetOutPath $INSTDIR

# Inclus les fichiers de l'installation ArtDatum
File "..\${INSTALLEXE}"
DetailPrint "Destination : $TEMP"
File /r /x CVS "..\image"
SectionEnd

# section faite après la fin du Main
Section -post
ExecWait "$TEMP\${INSTALLEXE}"
RmDir /r "$TEMP\image"
SectionEnd



Could you add pages and language(s) and try this script again?


you got it right!
after I added the language macro, no more errors!

thanks