I used this code to add copyright on welcome page:
!define MUI_WELCOMEPAGE_TEXT "c ${year} ${developer}\r\n\r\n$(MUI_${MUI_PAGE_UNINSTALLER_PREFIX}TEXT_WELCOME_INFO_TEXT)"
It worked just fine until I have upgraded to recent version (from 2.28 to 2.39).
Now I see only my copyright text and "This wizard will guide you through the installation of $(^NameDA)." (English.nsh) Text after "$\r$\n$\r$\n" is dropped.
How can I fix this?
How to new line in MUI_WELCOMEPAGE_TEXT
8 posts
You upgraded to MUI2, right? You should use $\r$\n for a new line.
Joost, thanks for reply
I have tried your solution and the result:
Now I see only copyright text - no "This wizard will guide..."
Also I don't use MUI2 - just bumped NSIS version. NSI script is the same as before.
Am I doing something wrong?
I have tried your solution and the result:
Now I see only copyright text - no "This wizard will guide..."
Also I don't use MUI2 - just bumped NSIS version. NSI script is the same as before.
Am I doing something wrong?
With MUI1, \r\n should work. Can you send me a minimal version of the script, which will compile on my system?
Sorry to keep you waiting.
Here is the script:
Here is the script:
;--------------------------------
;Includes
;--------------------------------
!include "MUI.nsh"
;--------------------------------
;General
;--------------------------------
;Name and file
Name "Test Game"
OutFile "game_setup.exe"
;Default installation folder
InstallDir "$PROGRAMFILES\My Company\My Game"
;Get installation folder from registry if available
InstallDirRegKey HKCU "Software\Alawar\My Game" "InstallPath"
;--------------------------------
;Pages
;--------------------------------
!define MUI_WELCOMEPAGE_TEXT "c 2008 My Company\r\n\r\n$(MUI_${MUI_PAGE_UNINSTALLER_PREFIX}TEXT_WELCOME_INFO_TEXT)"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section Test
SectionEnd
Section "Uninstall"
SectionEnd
Right. You're using internal MUI variables, so you cannot really expect such a thing to always be backwards compatible 🙂
The internal language string no longer contains the newlines in \r\n format which is used by MUI1. If you upgrade to MUI2 and use $\r$\n for the newlines, it should work again.
The internal language string no longer contains the newlines in \r\n format which is used by MUI1. If you upgrade to MUI2 and use $\r$\n for the newlines, it should work again.
How can I disable this output from makensis.exe?
----
File 'C:\Program Files\NSIS\Unicode\nsisconf.nsh' has a BOM marked as UTF-16LE.
Opening 'C:\Program Files\NSIS\Unicode\nsisconf.nsh' as UTF-16LE.
Opening 'C:\Users\tolan.ALAWAR\AppData\Roaming\nsisconf.nsh' as UTF-16LE.
File 'bigtest.nsi' has a BOM marked as UTF-16LE.
Opening 'bigtest.nsi' as UTF-16LE.
----
----
File 'C:\Program Files\NSIS\Unicode\nsisconf.nsh' has a BOM marked as UTF-16LE.
Opening 'C:\Program Files\NSIS\Unicode\nsisconf.nsh' as UTF-16LE.
Opening 'C:\Users\tolan.ALAWAR\AppData\Roaming\nsisconf.nsh' as UTF-16LE.
File 'bigtest.nsi' has a BOM marked as UTF-16LE.
Opening 'bigtest.nsi' as UTF-16LE.
----
Originally posted by tolanHow is this related to MUI? you should probably post in the unicode thread
How can I disable this output from makensis.exe?
----
File 'C:\Program Files\NSIS\Unicode\nsisconf.nsh' has a BOM marked as UTF-16LE.
Opening 'C:\Program Files\NSIS\Unicode\nsisconf.nsh' as UTF-16LE.
Opening 'C:\Users\tolan.ALAWAR\AppData\Roaming\nsisconf.nsh' as UTF-16LE.
File 'bigtest.nsi' has a BOM marked as UTF-16LE.
Opening 'bigtest.nsi' as UTF-16LE.
----