The condition looks correct. Remember, it has to be in the msi that will get uninstalled by the major upgrade.
The REMOVE property actually contains the features and not the components to uninstall. During a major upgrade it will be set to "ALL". The same thing is true if being uninstalled via Add/Remove Programs. -----Original Message----- From: chaiguy1337 [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2008 10:30 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Run CA on uninstall, but not when updating (RemovePreviousVersions) Excellent. So I should be able to set the condition for my uninstall CA to something like this: <Custom Action="UninstallCA" Before="RemoveFiles">REMOVE = "ALL" AND NOT UPGRADINGPRODUCTCODE</Custom> ...and it will only run when an explicit uninstall (and not a major upgrade) is performed? One more thing, could you explain what REMOVE="ALL" actually means, and does it belong in the above context? I just copied that from an example but couldn't find it explained anywhere except that it will contain a list of the components to remove or the string "ALL". Presumably, this means that the CA will only run if ALL of the components are being removed (which I assume is the case in an explicit uninstall), which makes sense. Is this correct? Ian Elliott (Excell Data Corporation) wrote: > > This should get you started: > http://blogs.technet.com/alexshev/archive/2008/02/15/from-msi-to-wix-part-8-major-upgrade.aspx > > Also, when a major upgrade runs the UPGRADINGPRODUCTCODE property is > passed into the version being uninstalled. > > -----Original Message----- > From: chaiguy1337 [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2008 8:52 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Run CA on uninstall, but not when updating > (RemovePreviousVersions) > > > Back when I wrote my installer using Visual Studio's setup project, there > was > a flag RemovePreviousVersions that would allow future versions of my > program > to update previous versions simply by removing the previous version and > installing the new one overtop of them. > > My first question is how to do this with WiX. > > But more importantly, there was a custom action in my old setup (via > System.Configuration.Install) that added a custom action to the > BeforeUninstall event: > > this.BeforeUninstall += new InstallEventHandler( > InstallHelper_BeforeUninstall ); > > Which removed the data files generated by the application at runtime. > > Anyhow, the point is that this custom action would only occur when the > product was actually manually uninstalled, and I want to make sure my WiX > installer has the same behavior. In other words, I want to call my custom > action only when the user explicitly selects to uninstall the program, not > when it is removed when a new version is installed overtop it (assuming > this > is possible with WiX). > > Can someone help me with this? > > ----- > A. Logan Murray > http://pihole.org/ > -- > View this message in context: > http://n2.nabble.com/Run-CA-on-uninstall%2C-but-not-when-updating-%28RemovePreviousVersions%29-tp1372539p1372539.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > 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 > > ----- A. Logan Murray http://pihole.org/ -- View this message in context: http://n2.nabble.com/Run-CA-on-uninstall%2C-but-not-when-updating-%28RemovePreviousVersions%29-tp1372539p1372883.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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