You've got a ton of options available to you; since I don't know the details of 
your installation, I'll try to give you a couple options (pick one [or 
something similar, or perhaps a hybrid] that makes the most sense for your 
situation).  If none of the below work for you, holler and I'll try to send 
some more your way...

1) Instead of writing out the value of INSTALLDIR, perhaps author the registry 
key value to use the path of a component that is installed under INSTALLDIR.

2) Condition the setting of INSTALLDIR to the default value on whether or not 
INSTALLDIR already exists; or simply if "NOT Installed".  Use a registry search 
to query the [historical] value of INSTALLDIR from the registry to properly set 
INSTALLDIR, if additional items within your installation will need the correct 
value of INSTALLDIR.



________________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Athay, David [EMAIL 
PROTECTED]
Sent: Friday, August 08, 2008 4:43 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Excluding registry entries from patching

I have a problem where I am specifying a registry entry in a component that
writes out the INSTALLDIR property to the registry.  My problem is that
patches to this MSI always reset the INSTALLDIR to the default value (the
Windows Installer default is C:\Program Files)

I need to either A) find a way of excluding that part of my install from
patching, or B) find a way to make sure that the MSP always sets INSTALLDIR
to what the original installation directory was before it processes the
patch so that the registry will still be valid after patching.

Any suggestions?

--
David Athay | CE Up & Running Team | Intuit, Inc. | Work: (858) 215-7149 |


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to