The property UPGRADINGPRODUCTCODE is set if a product uninstall is
occurring because of an incoming major upgrade, so AND NOT
UPGRADINGPRODUCTCODE looks like part of the condition you want on your
uninstall custom action. 

Phil Wilson 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carter
Sanders
Sent: Wednesday, July 11, 2007 12:06 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Executing a custom action on uninstall but not on
majorupgrade


I have an application that may put arbitrary directories and files in a
directory called plugins. I've written a custom dll that removes the
contents of this directory on uninstall, but I'd like to leave the
directory untouched for major upgrades. Can someone please tell me what
is the correct condition clause to do that? I currently have 

            <Custom Action="RemovePluginsDir"
Before="InstallFinalize"><![CDATA[$GenericRegistrySettings=2]]></Custom>



GenericRegistrySettings is a component that is always installed. 

I am using WiX 2.0

Thanks - Carter

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to