|
34 | 34 | <Custom Before="SetLauncherInstallDirectoryLM" Action="SetLauncherInstallDirectoryCU">NOT Installed AND NOT ALLUSERS=1</Custom>
|
35 | 35 | <Custom Before="CostFinalize" Action="SetLauncherInstallDirectoryLM">NOT Installed AND ALLUSERS=1</Custom>
|
36 | 36 |
|
| 37 | + <?if $(var.UpgradeMinimumVersion)="3.11.0.0" ?> |
| 38 | + <RemoveExistingProducts After="InstallValidate">UPGRADE or REMOVE_350_LAUNCHER or REMOVE_360A1_LAUNCHER or UPGRADE_3_11_0 or UPGRADE_3_11_1</RemoveExistingProducts> |
| 39 | + <?else ?> |
37 | 40 | <RemoveExistingProducts After="InstallValidate">UPGRADE or REMOVE_350_LAUNCHER or REMOVE_360A1_LAUNCHER</RemoveExistingProducts>
|
| 41 | + <?endif ?> |
38 | 42 | </InstallExecuteSequence>
|
39 | 43 |
|
| 44 | + <?if $(var.UpgradeMinimumVersion)="3.11.0.0" ?> |
| 45 | + <Condition Message="!(loc.NoDowngrade)">Installed OR NOT DOWNGRADE OR UPGRADE_3_11_0 OR UPGRADE_3_11_1</Condition> |
| 46 | + <?else ?> |
| 47 | + <Condition Message="!(loc.NoDowngrade)">Installed OR NOT DOWNGRADE</Condition> |
| 48 | + <?endif ?> |
| 49 | + |
40 | 50 | <!-- Upgrade all versions of the launcher -->
|
41 | 51 | <Upgrade Id="$(var.UpgradeCode)">
|
42 | 52 | <UpgradeVersion Property="DOWNGRADE" Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" />
|
43 | 53 | <UpgradeVersion Property="UPGRADE" Minimum="0.0.0.0" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="no" />
|
| 54 | + <!-- |
| 55 | + Prior to 3.11.2150, version numbers incorrectly used date-based |
| 56 | + revision numbers in the third field. Because these are higher than |
| 57 | + the real version, it prevents upgrades. |
| 58 | + Releases of 3.10 have a similar issue, however, no significant |
| 59 | + changes have shipped in the launcher, so we don't worry about it. |
| 60 | + --> |
| 61 | + <?if $(var.UpgradeMinimumVersion)="3.11.0.0" ?> |
| 62 | + <UpgradeVersion Property="UPGRADE_3_11_0" Minimum="3.11.7966.0" IncludeMinimum="yes" Maximum="3.11.7966.0" IncludeMaximum="yes" /> |
| 63 | + <UpgradeVersion Property="UPGRADE_3_11_1" Minimum="3.11.8009.0" IncludeMinimum="yes" Maximum="3.11.8009.0" IncludeMaximum="yes" /> |
| 64 | + <?endif ?> |
44 | 65 | </Upgrade>
|
45 | 66 | <!-- Python 3.5.0 shipped with a different UpgradeCode -->
|
46 | 67 | <Upgrade Id="A71530B9-E89D-53DB-9C2D-C6D7551876D8">
|
|
0 commit comments