Kaydet (Commit) c9fda9b9 authored tarafından Steve Dower's avatar Steve Dower

Issue #25165: Windows uninstallation should not remove launcher if other versions remain

üst c4b7600b
...@@ -244,7 +244,10 @@ Build ...@@ -244,7 +244,10 @@ Build
Windows Windows
------- -------
- Issues #25112: py.exe launcher is missing icons - Issue #25165: Windows uninstallation should not remove launcher if other
versions remain
- Issue #25112: py.exe launcher is missing icons
- Issue #25102: Windows installer does not precompile for -O or -OO. - Issue #25102: Windows installer does not precompile for -O or -OO.
......
...@@ -22,17 +22,19 @@ ...@@ -22,17 +22,19 @@
</Upgrade> </Upgrade>
<?if $(var.UpgradeCode)!=$(var.CoreUpgradeCode) ?> <?if $(var.UpgradeCode)!=$(var.CoreUpgradeCode) ?>
<?ifndef SkipMissingCore ?>
<Upgrade Id="$(var.CoreUpgradeCode)"> <Upgrade Id="$(var.CoreUpgradeCode)">
<UpgradeVersion Property="MISSING_CORE" Minimum="$(var.Version)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="yes" OnlyDetect="yes" /> <UpgradeVersion Property="MISSING_CORE" Minimum="$(var.Version)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="yes" OnlyDetect="yes" />
</Upgrade> </Upgrade>
<Condition Message="!(loc.IncorrectCore)">Installed OR NOT MISSING_CORE</Condition>
<?endif ?>
<?endif ?> <?endif ?>
<Condition Message="!(loc.NoDowngrade)">Installed OR NOT DOWNGRADE</Condition> <Condition Message="!(loc.NoDowngrade)">Installed OR NOT DOWNGRADE</Condition>
<Condition Message="!(loc.IncorrectCore)">Installed OR NOT MISSING_CORE</Condition>
<Condition Message="!(loc.NoTargetDir)">Installed OR TARGETDIR OR Suppress_TARGETDIR_Check</Condition> <Condition Message="!(loc.NoTargetDir)">Installed OR TARGETDIR OR Suppress_TARGETDIR_Check</Condition>
<InstallExecuteSequence> <InstallExecuteSequence>
<RemoveExistingProducts After="InstallInitialize">UPGRADE</RemoveExistingProducts> <RemoveExistingProducts After="InstallInitialize" Overridable="yes">UPGRADE</RemoveExistingProducts>
</InstallExecuteSequence> </InstallExecuteSequence>
</Fragment> </Fragment>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<OutputName>launcher</OutputName> <OutputName>launcher</OutputName>
<OutputType>Package</OutputType> <OutputType>Package</OutputType>
<DefineConstants>SkipMissingCore=1;$(DefineConstants)</DefineConstants>
</PropertyGroup> </PropertyGroup>
<Import Project="..\msi.props" /> <Import Project="..\msi.props" />
<ItemGroup> <ItemGroup>
......
...@@ -26,6 +26,13 @@ ...@@ -26,6 +26,13 @@
<InstallExecuteSequence> <InstallExecuteSequence>
<Custom Before="SetLauncherInstallDirectoryLM" Action="SetLauncherInstallDirectoryCU">NOT Installed AND NOT ALLUSERS=1</Custom> <Custom Before="SetLauncherInstallDirectoryLM" Action="SetLauncherInstallDirectoryCU">NOT Installed AND NOT ALLUSERS=1</Custom>
<Custom Before="CostFinalize" Action="SetLauncherInstallDirectoryLM">NOT Installed AND ALLUSERS=1</Custom> <Custom Before="CostFinalize" Action="SetLauncherInstallDirectoryLM">NOT Installed AND ALLUSERS=1</Custom>
<RemoveExistingProducts After="InstallInitialize">UPGRADE or REMOVE_OLD_LAUNCHER</RemoveExistingProducts>
</InstallExecuteSequence> </InstallExecuteSequence>
<!-- Python 3.5.0 shipped with an incorrect UpgradeCode -->
<Upgrade Id="A71530B9-E89D-53DB-9C2D-C6D7551876D8">
<UpgradeVersion Maximum="$(var.Version)" Property="REMOVE_OLD_LAUNCHER" />
</Upgrade>
</Product> </Product>
</Wix> </Wix>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment