Conditionally writing registry keys

For all your non-technical questions.
swmotif
Posts: 5
Joined: Mon Jan 08, 2007 2:26 am
Location: West Palm Beach, FL
Contact:

Conditionally writing registry keys

Postby swmotif » Mon Jan 08, 2007 2:35 am

Hello,

InstallAware Developer does everything I need except I can't figure a way to conditionally write registry keys. If the key exists, I don't want to overwrite the factory default value.

I haven't tested this to see if the presence of the key makes the install doesn't overwrite, but is there a way to acoomplish this?

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

Postby CandiceJones » Mon Jan 08, 2007 12:34 pm

Easy - just use Read Registry or Check Registry to see if the key exists, and then use an If...End block to prevent writing your own keys if so.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

ken rentz
Posts: 71
Joined: Mon Jan 23, 2006 5:33 pm
Contact:

Postby ken rentz » Fri Jan 12, 2007 11:57 am

CandiceJones wrote:Easy - just use Read Registry or Check Registry to see if the key exists, and then use an If...End block to prevent writing your own keys if so.


Could I request an enhancement that would add this checking to the internals of the write command? We have a legacy application that has about 350 registry items. Adding the wrapper via scripting makes the script rather large and very hard to read. Most programs are not this bloated in the registry, but I've always found that multiple, single line if commands annoying to work with.


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 36 guests