I'll check that out too, I just get confused with the setting of properties and when I can query them, but the link Rob sent seems to have solved it.
Thanks Ryan -----Original Message----- From: Ian Elliott (Excell Data Corporation) [mailto:[EMAIL PROTECTED] Sent: 14 October 2008 18:33 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Problems Executing a Custom Action on uninstall for a major upgrade. There is good info on major upgrades here: http://blogs.technet.com/alexshev/archive/2008/02/15/from-msi-to-wix-part-8- major-upgrade.aspx There is a section called "How upgrade works" that should help you out. If I understand you correctly when you install the upgrade, the original product is being uninstalled and a custom action from the original product is deleting some data. Unfortunately, if the original product has already been released there is not much you can do that I know of except maybe write another custom action to copy the data somewhere and then place it back. To avoid such a problem in the future, use a condition of NOT UPGRADINGPRODUCTCODE on any action in the original package that you want to prevent running during a major upgrade. -----Original Message----- From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2008 8:31 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Problems Executing a Custom Action on uninstall for a major upgrade. Take a look at the MSI SDK about Major Upgrades. There are a few different ways to schedule Major Upgrades and there are Properties set based on your Upgrade element. -----Original Message----- From: Ryan O'Neill [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2008 06:43 To: 'General discussion for Windows Installer XML toolset.' Subject: [WiX-users] Problems Executing a Custom Action on uninstall for a major upgrade. Hi all, I know this has been asked numerous time and I just saw another variant of it, but I'm scratching my head here. Can someone explain the steps for a major upgrade? Is it a complete uninstall and reinstall (as I suspect). Does this mean I can't really detect when I am being properly uninstalled? I ask because I'm using an action to delete folders and clean up when completely uninstalling but it seems to be running on an upgrade too, wiping out my application preferences in the process. XML snippet follows; <Custom Action="CleanLocalAppData" Before="CA_SetCleanAppData"><![CDATA[NOT Install]]></Custom> I tried using REMOVE as the conditional but according to the log file this always seems to be set. Regards Ryan ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.173 / Virus Database: 270.8.0/1724 - Release Date: 14/10/2008 02:02 ------------------------------------------------------------------------- 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