[wix-users] Problem with version detection

Hoover, Jacob Jacob.Hoover at greenheck.com
Wed Jan 17 14:06:59 PST 2018


Crippling your bundle because of an old issue seems to be the wrong approach.  If your using MSI's, and you follow the rules, you should be able to easily upgrade...  IE, fix the problem instead of writing code to enable a bad behavior.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Jon Earle via wix-users
Sent: Wednesday, January 17, 2018 3:23 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Jon Earle <earlej at hotmail.com>
Subject: Re: [wix-users] Problem with version detection

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.
                ShutdownInstaller();
            }
        }
        #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/>
www.firegiant.com
WiX Support | Installation, Development, Deployment | WiX Experts and Resources from FireGiant



____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list