Archive: MUI_DIRECTORYPAGE_TEXT doesn't accept long text


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?


Addition, seems that it doesn't like spaces in first text:

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

also failing


Use:

!define MUI_DIRECTORYPAGE_TEXT '"Text totry" "Button text"'

for now.


Thanks :)


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.


Fixed in the documentation.


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


Have you defined it right before inserting the MUI_PAGE_DIRECTORY macro?