Skip to content

Commit fa526bd

Browse files
committed
Closes #27314: Fixes launcher installer upgrade table.
1 parent c45599d commit fa526bd

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

Tools/msi/common.wxs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
<Fragment>
2121
<Property Id="UpgradeTable" Value="1" />
2222

23+
<?ifndef SuppressUpgradeTable ?>
2324
<Upgrade Id="$(var.UpgradeCode)">
2425
<UpgradeVersion Property="DOWNGRADE" Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" />
2526
<UpgradeVersion Property="UPGRADE" Minimum="$(var.UpgradeMinimumVersion)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="no" />
2627
</Upgrade>
28+
<?endif ?>
2729

2830
<?ifdef CoreUpgradeCode ?>
2931
<?if $(var.UpgradeCode)!=$(var.CoreUpgradeCode) ?>

Tools/msi/launcher/launcher.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<SchemaVersion>2.0</SchemaVersion>
66
<OutputName>launcher</OutputName>
77
<OutputType>Package</OutputType>
8-
<DefineConstants>UpgradeCode=1B68A0EC-4DD3-5134-840E-73854B0863F1;$(DefineConstants)</DefineConstants>
8+
<DefineConstants>UpgradeCode=1B68A0EC-4DD3-5134-840E-73854B0863F1;SuppressUpgradeTable=1;$(DefineConstants)</DefineConstants>
99
<IgnoreCommonWxlTemplates>true</IgnoreCommonWxlTemplates>
1010
<SuppressICEs>ICE80</SuppressICEs>
1111
</PropertyGroup>

Tools/msi/launcher/launcher.wxs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,21 @@
2929
<Custom Before="SetLauncherInstallDirectoryLM" Action="SetLauncherInstallDirectoryCU">NOT Installed AND NOT ALLUSERS=1</Custom>
3030
<Custom Before="CostFinalize" Action="SetLauncherInstallDirectoryLM">NOT Installed AND ALLUSERS=1</Custom>
3131

32-
<RemoveExistingProducts After="InstallValidate">UPGRADE or REMOVE_350_LAUNCHER</RemoveExistingProducts>
32+
<RemoveExistingProducts After="InstallValidate">UPGRADE or REMOVE_350_LAUNCHER or REMOVE_360A1_LAUNCHER</RemoveExistingProducts>
3333
</InstallExecuteSequence>
3434

35+
<!-- Upgrade all versions of the launcher -->
36+
<Upgrade Id="$(var.UpgradeCode)">
37+
<UpgradeVersion Property="DOWNGRADE" Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" />
38+
<UpgradeVersion Property="UPGRADE" Minimum="0.0.0.0" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="no" />
39+
</Upgrade>
3540
<!-- Python 3.5.0 shipped with a different UpgradeCode -->
3641
<Upgrade Id="A71530B9-E89D-53DB-9C2D-C6D7551876D8">
3742
<UpgradeVersion Minimum="0.0.0.0" Property="REMOVE_350_LAUNCHER" />
3843
</Upgrade>
3944
<!-- Python 3.6.0a1 shipped with a different UpgradeCode -->
4045
<Upgrade Id="394750C0-7880-5A8F-999F-933965FBCFB4">
41-
<UpgradeVersion Maximum="$(var.Version)" Property="REMOVE_360A1_LAUNCHER" />
42-
<UpgradeVersion Minimum="$(var.Version)" Property="BLOCK_360A1_LAUNCHER" />
46+
<UpgradeVersion Minimum="0.0.0.0" Property="REMOVE_360A1_LAUNCHER" />
4347
</Upgrade>
44-
<Condition Message="!(loc.NoDowngrade)">Installed OR NOT BLOCK_360A1_LAUNCHER</Condition>
4548
</Product>
4649
</Wix>

0 commit comments

Comments
 (0)