[wix-users] Burn not performing minor upgrade

Kevin Mackey kmackey at gmail.com
Thu Mar 5 13:09:53 PST 2020


I'm having a problem where burn is not doing a minor update/upgrade of the
MsiPackage. Burn sets REINSTALLMODE, but not REINSTALL.

I have EnableFeatureSelection="yes", and my managed BA handles the
OnPlanMsiFeature() callback. MajorUpgrade and Repair work.

Here's some of the OnPlanMsiFeature callback code (C#):

private void Bootstrapper_PlanMsiFeature(object sender,
PlanMsiFeatureEventArgs e)
{
    if (e.PackageId == "MyPackage")
    {
        switch (e.FeatureId)
        {
            case "AppFeature":
                if
(this.Bootstrapper.Engine.StringVariables["AppFeatureChecked"] == "True")
                {
                    e.State = FeatureState.Local;
                }
        . . .
        }
    . . .
    }
. . .
}

Here's some of the bundle log, with product identifications replaced with
"MyPackage" and "AppFeature":

[1210:1E10][2020-03-03T16:01:01]i103: Detected related package:
{myMSIProductCode}, scope: PerMachine, version: myversion, language: 1033
operation: MinorUpdate
[1210:1E10][2020-03-03T16:01:01]i000: Detected related MSI package:
{myMSIProductCode}
. . .
[1210:1E10][2020-03-03T16:01:01]i104: Detected package: MyPackage, feature:
AppFeature, state: Local
. . .
[1210:0EA8][2020-03-03T16:01:01]i000: LaunchAction changed: Install
. . .
[1210:1E10][2020-03-03T16:01:08]i000: Bootstrapper planning MsiFeature
AppFeature of MyPackage
[1210:1E10][2020-03-03T16:01:08]i203: Planned feature: AppFeature, state:
Local, default requested: Unknown, ba requested: Local, execute action:
None, rollback action: None
. . .
[1210:1E10][2020-03-03T16:01:08]i201: Planned package: MyPackage, state:
Present, default requested: Present, ba requested: Present, execute:
MinorUpgrade, rollback: None, cache: Yes, uncache: No, dependency: Register

MSI Log:

MSI (s) (74:48) [16:01:41:228]: Command Line: ARPSYSTEMCOMPONENT=1
MSIFASTINSTALL=7 INSTDIR=C:\Program Files\MyCompany\ REINSTALLMODE=vomus
REBOOT=ReallySuppress CURRENTDIRECTORY=C:\Users\me\Desktop CLIENTUILEVEL=3
MSICLIENTUSESEXTERNALUI=1 CLIENTPROCESSID=88

Notice that REINSTALLMODE is set, but not REINSTALL. When I repair,
REINSTALL has the list of features, which I expect to be the same when
doing a minor upgrade.


More information about the wix-users mailing list