tolan
2nd October 2008 12:59 UTC
How to new line in MUI_WELCOMEPAGE_TEXT
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?
Joost Verburg
2nd October 2008 14:35 UTC
You upgraded to MUI2, right? You should use $\r$\n for a new line.
tolan
3rd October 2008 05:49 UTC
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?
Joost Verburg
3rd October 2008 13:07 UTC
With MUI1, \r\n should work. Can you send me a minimal version of the script, which will compile on my system?
tolan
8th October 2008 10:40 UTC
Sorry to keep you waiting.
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
Joost Verburg
8th October 2008 11:06 UTC
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.
tolan
17th March 2009 12:30 UTC
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.
----
Anders
17th March 2009 12:46 UTC
Originally posted by tolan
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.
----
How is this related to MUI? you should probably post in the unicode thread