[wix-users] Problem with version detection

Jon Earle earlej at hotmail.com
Wed Jan 17 13:22:43 PST 2018

Yes, that makes sense.

I am working with OnDetectRelatedBundle  now...

        #region OnDetectRelatedBundle
        public override void OnDetectRelatedBundle(WPFBootstrapperEventArgs<Wix.DetectRelatedBundleEventArgs> e)
            uninstallPriorVersionMessage = Bootstrapper.Engine.FormatString(Bootstrapper.Engine.StringVariables["CannotUpgradeMessage"]);

            // We are going to short-circuit and prevent any upgrades for the time being. When we wish to handle upgrades,
            // this method can be removed and the logic conducted in the OnDetectRelatedMsiPackage.
            if (e.Arguments.RelationType == Wix.RelationType.Upgrade
             && e.Arguments.Operation == Wix.RelatedOperation.MajorUpgrade)
                // Write a message to the log and pop up a messagebox alerting the user.
                AlertAndLogMessage(Wix.LogLevel.Standard, uninstallPriorVersionMessage);

                // Close the installer.
        #endregion OnDetectRelatedBundle

From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Nir Bar via wix-users <wix-users at lists.wixtoolset.org>
Sent: Wednesday, January 17, 2018 3:20 AM
To: WiX Toolset Users Mailing List
Cc: Nir Bar
Subject: Re: [wix-users] Problem with version detection

The GUID values in log are the bundle Id which gets a new value on each build.

In your BA you can handle OnDetectRelatedBundle and OnPlanRelatedBundle.

--Independent WiX Expert. Creator of-
JetBA: WPF Bootstrapper User Interface Framework

JetBA++: Native Qt Bootstrapper User Interface Framework

WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
WiX Support | WiX Experts and Resources from FireGiant<http://www.firegiant.com/>
WiX Support | Installation, Development, Deployment | WiX Experts and Resources from FireGiant

More information about the wix-users mailing list