Menu

#285 Backslash in Windows Registry Key Disappears

Not Fixed
open
nobody
None
5
2008-07-19
2008-07-17
No

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.

Discussion

  • Steven Frank

    Steven Frank - 2008-07-17

    Values from InstallJammer

     
  • Steven Frank

    Steven Frank - 2008-07-17

    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)

     
  • Damon Courtney

    Damon Courtney - 2008-07-19

    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?

     
  • Damon Courtney

    Damon Courtney - 2008-07-19
    • milestone: --> Not Fixed
     
  • Damon Courtney

    Damon Courtney - 2008-07-28

    Logged In: YES
    user_id=50387
    Originator: NO

    What version of IJ are you using and what action are you using with this error?

     
  • Steven Frank

    Steven Frank - 2008-07-28

    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

     
  • Damon Courtney

    Damon Courtney - 2008-08-01

    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-]

     

Log in to post a comment.

MongoDB Logo MongoDB