Old 2nd October 2008, 11:59   #1
tolan
Junior Member
 
Join Date: Nov 2006
Posts: 13
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?
tolan is offline   Reply With Quote
Old 2nd October 2008, 13:35   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
You upgraded to MUI2, right? You should use $\r$\n for a new line.
Joost Verburg is offline   Reply With Quote
Old 3rd October 2008, 04:49   #3
tolan
Junior Member
 
Join Date: Nov 2006
Posts: 13
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?
tolan is offline   Reply With Quote
Old 3rd October 2008, 12:07   #4
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
With MUI1, \r\n should work. Can you send me a minimal version of the script, which will compile on my system?
Joost Verburg is offline   Reply With Quote
Old 8th October 2008, 09:40   #5
tolan
Junior Member
 
Join Date: Nov 2006
Posts: 13
Sorry to keep you waiting.
Here is the script:
code:

;--------------------------------
;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

tolan is offline   Reply With Quote
Old 8th October 2008, 10:06   #6
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
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.
Joost Verburg is offline   Reply With Quote
Old 17th March 2009, 10:30   #7
tolan
Junior Member
 
Join Date: Nov 2006
Posts: 13
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.
----
tolan is offline   Reply With Quote
Old 17th March 2009, 10:46   #8
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,163
Quote:
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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump