Archive: newline in MUI_DIRECTORYPAGE_TEXT_TOP?


newline in MUI_DIRECTORYPAGE_TEXT_TOP?
Is there any way to force a new line in MUI_DIRECTORY_PAGE_TOP,as there is in MUI_WELCOMEPAGE_TEXT?

Couldn't find anything in the forum on this.

I tried \r\n but this goes through as straight text.

Thanks,

David White


Hi,


We can find some reference in documents:

$$

Use to represent $.

$\r

Use to represent a carriage return (\r).

$\n

Use to represent a newline (\n).

$\t

Use to represent a tab (\t).
...
so you can use:
!define MUI_DIRECTORYPAGE_TEXT_TOP "Line number 1$\r$\nLine number 2"

good luck,
Ramon

Ramon,

Thanks fot this, it works well.

My only query is why are there different formats for escape sequences for the Welcome Page Text, e.g. \r \n, etc,
and for the Directory Page Text, $\r $\n, etc.

It would make life much easier if the same standard could be used for both!

Regards,

David


All strings used in MUI or any kind of script must use the logic $\r$\n, only *.nlf and *.ini files are in style of C/C++ with the \r\n

Explanation in welcome page text:
MUI_WELCOMEPAGE_TEXT text
Text to display on the page. Use \r\n for a newline.

The [text] param is a string to be written into ioSpecial.ini used by InstallOptions plugin. NSIS pre-processes any string in your script and then converts all "$\n" to a "line feed" and all "$\r" to a "carriage return"
, then you have a problem, *.ini files don't support line breaks between "key=value" (windows limitation), imagine you want to write to a custom page ini, the text to be shown inside a multiline edit control!!!??

cyas,
Ramon