Groups | Blog | Home
all groups > visual studio .net setup > september 2007 >

visual studio .net setup : setting registry values in setup proj



paul moore
9/4/2007 5:10:00 PM
I want to set values in the registry but only if they are not already set. So
on an upgrade I dont verwrite the settings the user already has set

I tried

Launch condition REG1=HKLM/Software/Acme/regval1

and the said on the regval1 regsitry value condition = REG1=""

The reg key gets set on first install (good) because REG1==""
The reg key gets removed on second install (bad) because REG1!=""

Stevanich
9/4/2007 8:44:25 PM
paul,

Check out this MSDN article on adding a registry launch condition:
http://msdn2.microsoft.com/en-us/library/4awx1f1d(VS.80).aspx

Hope this helps,


Steve - dotneticated.com

[quoted text, click to view]

paul moore
9/5/2007 8:50:04 AM
Thx for the input , but it doesnt really help.
It describes how to setup the launch condition - which I already did; based
on that article

[quoted text, click to view]
Stevanich
9/10/2007 12:39:36 AM
Paul,

For each key and folder in the setup project registry editor, you can
specify a condition.
http://msdn2.microsoft.com/en-us/library/bbxyfa24(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/aa368012.aspx

Hope this helps,

Steve - dotneticated.com


[quoted text, click to view]

AddThis Social Bookmark Button