Backslash in Windows Registry Key Disappears
Brought to you by:
damonc
When adding a new "string array" registry value, the backslashes are not being used.
So this value:
"<%Dir <%InstallDir%> windows%>\program.exe"
Results in:
C:Program FilesCompanyProductprogram.exe
I am assuming they need to be escaped, but I see no way to do that.
It works if I use a forwardslash, but the program that uses the value can't handle it.
I also see no way to do virtual text find/replace which seems like it would be a common task.
Values from InstallJammer
Logged In: YES
user_id=135194
Originator: YES
Ok, this is weird:
<%Dir <%InstallDir%> windows%>\\program.exe
Resulted in:
c:Program
FilesCompany
Product\program.exe
So using \\ did result in a \ in the registry, but it also caused spaces to be treated as new lines! (our company has a space in it so that is why i put Product in the next line)
Logged In: YES
user_id=50387
Originator: NO
Ok. It looks like the substitution on the registry key is getting subst'd twice maybe. Let me look into that. You are you using the Add Windows Registry Key action, right?
Logged In: YES
user_id=50387
Originator: NO
What version of IJ are you using and what action are you using with this error?
Logged In: YES
user_id=135194
Originator: YES
I attached a screenshot of my action specifically so you would have all the info about what i was doing. "Add Windows Registry Key" of type "Strnig Array"
The version is 1.2.7.0
Logged In: YES
user_id=50387
Originator: NO
Ok. I have to look into this and figure out why it is so, but it seems the quotes around the string are what's causing the backslashes to disappear. Don't know why yet. I'll have to dig in a bit. If you use:
<%Dir <%InstallDir%> windows%>\BackupAgent.exe
without the quotes, everything will work fine by my tests. 0-]