Archive: can't add line feeds to PAGE_*_TEXT


can't add line feeds to PAGE_*_TEXT
Hello!

When you look into NSIS's language files, the welcome page text is defined as follows:

"This wizard will guide you through the uninstallation of $(^NameDA).$\r$\n$\r$\nBefore starting the uninstallation, make sure $(^NameDA) is not running.$\r$\n$\r$\n$_CLICK"


Now, if I try to re-define the text using '!define MUI_WELCOMEPAGE_TEXT "My text stands here"' everything is fine (= "My text stands here" appears on welcome page).

But if I change "My text stands here" to "My text $\r$\n stands here", everything following "text" is cut off.
I even tried the original text, but that doesn't appear either.

Can anybody help, please?

Thanks,
kniffte

BTW: it works on other pages (e.g. components page)

Here's a compile-able example code:


!define PRODUCT_NAME "My Application"

SetCompressor bzip2

; MUI 1.67 compatible ------
!include "MUI.nsh"

; MUI Settings
!define MUI_ABORTWARNING
;!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"

; Welcome page
!define MUI_WELCOMEPAGE_TEXT "My text$\r$\nstandshere"
!insertmacro MUI_PAGE_WELCOME

; Language files
!insertmacro MUI_LANGUAGE "English"

; MUI end ------

Name "${PRODUCT_NAME}"
OutFile "Setup.exe"
InstallDir "$PROGRAMFILES\Meine Anwendung"

ShowInstDetails show

Section "Empty" SEC01
SectionEnd

Either switch to MUI2 (!include MUI2.nsh) (recommended) or use \r\n instead of $\r$\n as MUI1 uses InstallOptions for its Welcome and Finish pages.

Stu


Hi!

Cool, thanks for your fast reply.

'\r\n' did the trick.

Bye!

Stfan