Unregistered343
28th September 2004 12:20 UTC
string trouble
I'm trying to write an UNC path to the registry using the WriteRegStr command. The path is "\\ZLADFTVCL003\CALIBRATE$\". I try to escape the $ sign using $$, but I still get the Error: unterminated string... What am I doing wrong? Removing the last backslash works, but that's not quite what I want.
Unregistered23
28th September 2004 15:00 UTC
To clarify the question a bit:
Isn't "$$\" the correct nsis string representation for "$\"? Or how am I supposed to escape the $\ sequence?
kichik
28th September 2004 19:14 UTC
Well, it probably should be the correct method to escape it, but currently there is no method to escape the $\" sequence. You can use the following code for now:
StrCpy $0 "\\ZLADFTVCL003\CALIBRATE$$\ "
StrCpy $0 $0 -1