In my installation I need to set a dword registry to a default value when the 
install is first run and remove the key on uninstall but not change it on an 
upgrade. I am struggling to find a way to do reliably and wondered if anyone 
had any suggestions.

Here is what I have tried:

1.       Read the existing value with <RegistrySearch> and rewrite it on 
upgrade, this fails because DWORDs come back prefixed with a hash (#) and 
<RegistryValue> causes this to be written as a string.

2.       Read the existing value with <RegistrySearch> and Condition the 
<RegistryValue> so it is only written when the value is not set. The problem 
with this is that on upgrade the key is removed.

I can solve this by writing a CA to read the values but I am sure there must be 
a standard way of doing this that is eluding me.

Neil

Neil Sleightholm
X2 Systems Limited
n...@x2systems.com<mailto:n...@x2systems.com>

------------------------------------------------------------------------------
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to