Problem with macro and quotes
Hi,
this code doesn't compile:
!insertmacro MUI_HEADER_TEXT "title" "problem is $\"here$\""
and I don't understand why...
this is the error:
Error in macro MUI_HEADER_TEXT on macroline 8
please help me !
Archive: Problem with macro and quotes
Problem with macro and quotes
Hi,
this code doesn't compile:
!insertmacro MUI_HEADER_TEXT "title" "problem is $\"here$\""
and I don't understand why...
this is the error:
Error in macro MUI_HEADER_TEXT on macroline 8
please help me !
Hi :) !
Well, there are two solutions to your problem:
1) Invert the '' and ""
!insertmacro MUI_HEADER_TEXT "title" "bla 'pouet' "
2) Use a LangString:
LangString toto ${LANG_ENGLISH} 'bla "pouet" '
!insertmacro MUI_HEADER_TEXT "title" $(toto)
Et voila :D
evilO/Olive
1) I want to use " not ' :)
(Actually, I use two ' to do a ")
2) I can't use a langstring. I'm using a pre-compiled string:
!define MUI_MYSUBTITLE "blabla $\"error$\" "
1) Ok, up to you, but what do you mean by : Actually, I use two ' to do a " ?
2) Does your installer use multiple languages ?
If it does NOT, what's so important about using a LangString instead of a define ?
LangString MUI_MYSUBTITLE${LANG_ENGLISH} 'blabla "error"'
>!insertmacro MUI_HEADER_TEXT "title" ${MUI_MYSUBTITLE}
And if it does, well, can't you do something like:
LangString mysubtitle${LANG_FRENCH} 'blabla "erreur"'
>LangString mysubtitle ${LANG_ENGLISH} 'blabla "error"'
>!define MUI_MYSUBTITLE $(mysubtitle)
!
insertmacro MUI_HEADER_TEXT "title" ${MUI_MYSUBTITLE}
Does that help :) ?