Zarik
8th September 2003 12:13 UTC
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
8th September 2003 12:15 UTC
Addition, seems that it doesn't like spaces in first text:
!define MUI_DIRECTORYPAGE_TEXT "$\"Text totry$\" $\"Button text$\""
also failing
kichik
8th September 2003 12:36 UTC
Use:
!define MUI_DIRECTORYPAGE_TEXT '"Text totry" "Button text"'
for now.
Zarik
8th September 2003 12:37 UTC
Thanks :)
kichik
8th September 2003 12:39 UTC
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.
Joost Verburg
8th September 2003 15:21 UTC
Fixed in the documentation.
giugio
29th November 2007 10:12 UTC
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
kichik
29th November 2007 17:03 UTC
Have you defined it right before inserting the MUI_PAGE_DIRECTORY macro?