congahonga
12th May 2009 10:12 UTC
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 !
Animaether
12th May 2009 11:25 UTC
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}
Animaether
12th May 2009 11:26 UTC
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?