Archive: Escape Sequence for "${xxxxx}"


Escape Sequence for "${xxxxx}"
Hi there,

I want to replace in a txt-file a variable.

the variable in the txt-file is ${xxxxxx}

Problem is, that in source-code NSIS sees this also as a NSIS-Variable...

What's the correct Escape Sequence ?

I tried \${xxxxx} and other tricks, but i didn't work...

Please help !


Must be a proper method somewhere, but you could work around it by using..


StrCpy $0 "$"
StrCpy $0 "$0{xxxxx}"

and then use $0 instead of ${xxxxx}

by the by...

${xxxxx} shouldn't be a problem unless you actually have xxxxx defined. Maybe you could internally prepend or append an underscore so as to prevent this conflict?