Archive: string trouble


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.


To clarify the question a bit:

Isn't "$$\" the correct nsis string representation for "$\"? Or how am I supposed to escape the $\ sequence?


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