Append Registry Entry

For all your non-technical questions.
pageda
Posts: 4
Joined: Thu Jul 19, 2007 3:40 pm

Append Registry Entry

Postby pageda » Thu Jul 19, 2007 3:43 pm

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.

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Thu Jul 19, 2007 4:11 pm

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.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

pageda
Posts: 4
Joined: Thu Jul 19, 2007 3:40 pm

okay...

Postby pageda » Thu Jul 19, 2007 4:29 pm

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?

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Thu Jul 19, 2007 5:00 pm

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$
Candice Jones

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

pageda
Posts: 4
Joined: Thu Jul 19, 2007 3:40 pm

Postby pageda » Fri Jul 20, 2007 7:45 am

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.
Last edited by pageda on Fri Jul 20, 2007 8:00 am, edited 1 time in total.

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Fri Jul 20, 2007 7:53 am

Evaluation editions do not have any features disabled. You want to switch to the MSIcode tab.
Candice Jones

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

pageda
Posts: 4
Joined: Thu Jul 19, 2007 3:40 pm

Postby pageda » Fri Jul 20, 2007 9:33 am

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

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Fri Jul 20, 2007 9:47 am

Please contact our support team for further assistance.
Candice Jones

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 2 guests