One of the string values added to the registry is
BASE_DIR=\\server\share\folder$\The EclipseNSIS created this line of code to add it to the registry:
Compiling gives me this error:WriteRegStr HKEY_LOCAL_MACHINE SOFTWARE\company\program BASE_DIR \\server\share\folder$\
WriteRegStr expects 4 parameters, got 8.Line 75 is
Usage: WriteRegStr rootkey subkey entry_name new_value_string
root_key=(HKCR|HKLM|HKCU|HKU|HKCC|HKDD|HKPD|SHCTX)
Error in script "C:\Documents and Settings\me\My Documents\setup_silent.nsi" on line 74 -- aborting creation process
WriteRegStr HKLM "${REGKEY}\Components" Main 1which is how it gets 8 parameters in the error.I do not have control over the $ and the trailing backslash.
I have tried many different variations of $$, \\, and all three types of quotes. I've managed to just get warnings, but the output is never right in the registry. I end up with multiple "$"s, multiple "\"s, no "$", and/or no trailing "\" at the end of the string value in the registry.
Removing the trailing backslash allows the script to compile and run just fine (except now I do not have the trailing backslash).
Can someone figure this out? If not, perhaps I'll look at getting NSIS to run an embedded cmd script that loads an embedded .reg file. I was just (futilely) trying to keep it all NSIS. Maybe the answer is to add the string without the trailing backslash and then concatenate the trailing backslash. Perhaps I'll see how to do that tomorrow.
Thank you in advance for any help/suggestions.