[wix-users] Uninstallation of related bundle
Phill Hogland
phill.hogland at rimage.com
Fri Apr 22 06:53:30 PDT 2016
In addition to John's advise, I also do the following:
In OnDetectRelatedBundle use e.Operation == BOOTSTRAPPER_RELATED_OPERATION_MAJOR_UPGRADE (or others as applicable). Since I use my mba in many different bundles I filter this with the BundleTag
....
else if (e.Operation == RelatedOperation.MajorUpgrade && myBA.Model.BundleTag.Equals(e.BundleTag, StringComparison.OrdinalIgnoreCase))
{
myBA.Model.IsBundleMajorUpgradeDetected = true;
}
________________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of John Cooper <JoCooper at jackhenry.com>
Sent: Friday, April 22, 2016 8:08:51 AM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Uninstallation of related bundle
Take a look at implementing event handlers for DetectUpdate, DetectUpdateBegin, and DetectUpdateComplete as well as DetectRelatedBundle. There are implementations for all of these in the MBA that WiX itself uses that you can use as a starting point.
--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Enterprise Notification Service
Jack Henry & Associates, Inc.® | Lenexa, KS 66214 | Ext: 431050 |JoCooper at jackhenry.com
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Reuss, Matthias
Sent: Friday, April 22, 2016 2:33 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Uninstallation of related bundle
The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin.
Hello,
When upgrading a bundle, the old bundle is removed (similar to an MSI major upgrade). So how can my CustomBA detect whether such a "major upgrade" uninstall is running in order to distinguish this situation from a "real" uninstall? In MSI, the property UPGRADINGPRODUCTCODE can be queried for this purpose; is there something similar in Burn?
Best regards
Matthias
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message,
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution
is strictly prohibited. If you have received this message in error, please
immediately advise the sender by reply email and delete all copies.
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list