Skip to content
⌘ NSIS Forum Archive

MUI_DIRECTORYPAGE_TEXT doesn't accept long text

8 posts

Zarik#

MUI_DIRECTORYPAGE_TEXT doesn't accept long text

At least it seems to me.
If I try to use some long text like this:

!define MUI_DIRECTORYPAGE_TEXT "$\"Setup will install ${MUI_PRODUCT} content files (templates, sample etc) in the following folder. To install in a different folder, click Browse and select another folder.$\" $\"Content Folder$\""

then compiler gives me the following error:
!define: "MUI_DIRECTORYPAGE_TEXT"="$\"Setup will install Album Creator content files (templates, sample etc) in the following folder. To install in a different folder, click Browse and select another folder.$\" $\"Content Folder$\""
!insertmacro: MUI_PAGE_DIRECTORY
DirText expects 0-3 parameters, got 28.
Usage: DirText [directory_page_description] [directory_page_subtext] [browse_button_text] [browse_dlg_text]
Error in macro MUI_PAGE_DIRECTORY on macroline 18
---------
Strange thing that if I am trying short texts (like in MUI Readme):

!define MUI_DIRECTORYPAGE_TEXT "$\"Text$\" $\"Buttontext$\""

Everything is fine. No errors during compilation.
Any thoughts?
Zarik#
Addition, seems that it doesn't like spaces in first text:

!define MUI_DIRECTORYPAGE_TEXT "$\"Text totry$\" $\"Button text$\""

also failing
kichik#
Actually, always. It's working right. \$" is only to be used to escape a double quote (") in string quoted by double quotes. It makes the preprocessor not treat it as a token opener/closer. Since you do want those double quotes to open and close the tokens, you shold not escape them like that.
giugio#
I find this post
i try to set :MUI_DIRECTORYPAGE_TEXT '"Text totry" "Button text"'
but dont work.
THe compiler dont' send errors ,but i run and the text in the directorypage is not set.
The text Remains the default text
Why?
thanks