Conditionally writing registry keys

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

Conditionally writing registry keys

Post by swmotif »

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?
James Carlburg
http://www.softwaremotif.com
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

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
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
ken rentz
Posts: 71
Joined: Mon Jan 23, 2006 5:33 pm
Contact:

Post by ken rentz »

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