Page 1 of 1
Append Registry Entry
Posted: Thu Jul 19, 2007 3:43 pm
by pageda
I'm using the evaluation version of IA7 and attempting a simple registry modification of adding to the path and pathext; however, it keeps overwriting the original registry entry.
I've tried appending and prepending strings but am not sure if I'm going about this the right way. Does IA have the ability to append registry entries rather than overwrite? I assume it would but didn't find very many other questions regarding this issue.
Posted: Thu Jul 19, 2007 4:11 pm
by CandiceJones
Yes, you can do this. For example, use Read Registry, read the data into a variable, then say Write Registry $THATVARIABLE$;new value or something similar.
If you are using multi-line strings, then there is a straightforward command mode to append or pre-pend, but it didn't seem like that's what you're trying to do here.
okay...
Posted: Thu Jul 19, 2007 4:29 pm
by pageda
Candice...sorry for being such a newbie but i'm not sure what that all means.
For example....I'm trying to add c:\\subversion\\bin and c:\\ruby\\bin to the path and .rb and .rbw to the pathext
Basically, i've add the c:\\subversion\\bin into the path registry within the Studio Admin console and when run, it writes that into the path; BUT, a) it doesn't work and b) it overwrites everything else that's usually in path
Can you give me a little more detail on this 'read registry'/'write registry' function?
Posted: Thu Jul 19, 2007 5:00 pm
by CandiceJones
If it doesn't work, how come it overwrites everything else
Here's some sample code for you to paste:
Code: Select all
~InstallAware Clipboard Data~
~Comment~
~{E0EDC33C-5E88-4685-9379-42D925C75A64}~
~~
~Write Registry~
~{AD76D9B8-B0A9-43C7-A19F-AEB74BAFD655}~
~0~
~2~
~SOFTWARE\\My Company\\My Product~
~My Value~
~$REG_DATA$~
~TRUE~
~FALSE~
~Set Variable~
~{727F6494-0FBC-419B-AEE5-4691B0DB9430}~
~REG_DATA$MYAH$MYAH$FALSE~
~$REG_DATA$;My Appended Value~
~Read Registry~
~{7264EC90-FB71-4C07-BE43-8D98BE202181}~
~REG_DATA~
~2~
~SOFTWARE\\My Company\\My Product~
~My Value~
In human readable form:
Read Registry Key HKLM\\SOFTWARE\\My Company\\My Product\\My Value into REG_DATA
Set Variable REG_DATA to $REG_DATA$;My Appended Value
Write Registry Key HKLM\\SOFTWARE\\My Company\\My Product\\My Value, $REG_DATA$
Posted: Fri Jul 20, 2007 7:45 am
by pageda
Well, i understand the irony of my previous post.
1) It is successful and it overwrites the path data with c:\\subversion\\bin...at least that's what it shows in regedit
2) However, typing commands (svn) are not successful
3) Typing other commands that were originally in the path key are STILL successful.
4) I get the code (sort of) where does it go? I'm using the eval version which has some of the features disabled I believe.
EDIT: OK, I think i found it...in the MSI Code area.
Posted: Fri Jul 20, 2007 7:53 am
by CandiceJones
Evaluation editions do not have any features disabled. You want to switch to the MSIcode tab.
Posted: Fri Jul 20, 2007 9:33 am
by pageda
okay...i got the key attempting to "overwrite" with the corrected/appended key...but I'm getting Permissions issues...
I'm using a .msi I created through the group policy wizard...
Posted: Fri Jul 20, 2007 9:47 am
by CandiceJones
Please contact our support team for further assistance.