2015-02-06 02:08:48 -04:00
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Language="!(loc.LCID)" Name="!(loc.Title)" Version="$(var.Version)" Manufacturer="!(loc.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
2022-01-28 12:48:06 -04:00
<Package InstallerVersion="500" Compressed="yes" InstallScope="perUser" />
2015-02-06 02:08:48 -04:00
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
2022-06-15 13:07:55 -03:00
2015-02-06 02:08:48 -04:00
<Property Id="Suppress_TARGETDIR_Check" Value="1" />
2016-09-05 18:51:41 -03:00
<Icon Id="ARPIcon" SourceFile="!(bindpath.src)PC\icons\launcher.ico" />
<Property Id="ARPPRODUCTICON" Value="ARPIcon" />
<Property Id="ARPNOMODIFY" Value="1" />
<Property Id="DISABLEADVTSHORTCUTS" Value="1" />
2015-02-06 02:08:48 -04:00
2022-06-15 13:07:55 -03:00
<Property Id="ARM64_SHELLEXT">
<ComponentSearch Id="RegistrySearch_ARM64_SHELLEXT_Detected"
Guid="{C591963D-7FC6-4FCE-8642-5E01E6B8848F}" />
</Property>
2015-02-06 02:08:48 -04:00
<Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
<ComponentGroupRef Id="launcher_exe" Primary="yes" />
</Feature>
<Feature Id="AssociateFiles" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
<ComponentGroupRef Id="launcher_exe" />
<ComponentGroupRef Id="launcher_reg" />
</Feature>
2022-06-15 13:07:55 -03:00
2015-02-06 02:08:48 -04:00
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="LauncherInstallDirectory" />
</Directory>
2022-06-15 13:07:55 -03:00
2015-02-06 02:08:48 -04:00
<CustomAction Id="SetLauncherInstallDirectoryLM" Property="LauncherInstallDirectory" Value="[WindowsFolder]" />
<CustomAction Id="SetLauncherInstallDirectoryCU" Property="LauncherInstallDirectory" Value="[LocalAppDataFolder]Programs\Python\Launcher" />
2022-06-15 13:07:55 -03:00
2015-02-06 02:08:48 -04:00
<InstallExecuteSequence>
<Custom Before="SetLauncherInstallDirectoryLM" Action="SetLauncherInstallDirectoryCU">NOT Installed AND NOT ALLUSERS=1</Custom>
<Custom Before="CostFinalize" Action="SetLauncherInstallDirectoryLM">NOT Installed AND ALLUSERS=1</Custom>
2015-10-01 19:19:39 -03:00
2023-02-13 16:33:48 -04:00
<?if $(var.UpgradeMinimumVersion)="3.11.0.0" ?>
<RemoveExistingProducts After="InstallValidate">UPGRADE or REMOVE_350_LAUNCHER or REMOVE_360A1_LAUNCHER or UPGRADE_3_11_0 or UPGRADE_3_11_1</RemoveExistingProducts>
<?else ?>
2016-09-09 17:19:09 -03:00
<RemoveExistingProducts After="InstallValidate">UPGRADE or REMOVE_350_LAUNCHER or REMOVE_360A1_LAUNCHER</RemoveExistingProducts>
2023-02-13 16:33:48 -04:00
<?endif ?>
2015-02-06 02:08:48 -04:00
</InstallExecuteSequence>
2016-07-16 20:17:33 -03:00
2023-02-13 16:33:48 -04:00
<?if $(var.UpgradeMinimumVersion)="3.11.0.0" ?>
<Condition Message="!(loc.NoDowngrade)">Installed OR NOT DOWNGRADE OR UPGRADE_3_11_0 OR UPGRADE_3_11_1</Condition>
<?else ?>
<Condition Message="!(loc.NoDowngrade)">Installed OR NOT DOWNGRADE</Condition>
<?endif ?>
2016-09-09 17:19:09 -03:00
<!-- Upgrade all versions of the launcher -->
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion Property="DOWNGRADE" Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" />
<UpgradeVersion Property="UPGRADE" Minimum="0.0.0.0" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="no" />
2023-02-13 16:33:48 -04:00
<!--
Prior to 3.11.2150, version numbers incorrectly used date-based
revision numbers in the third field. Because these are higher than
the real version, it prevents upgrades.
Releases of 3.10 have a similar issue, however, no significant
changes have shipped in the launcher, so we don't worry about it.
-->
<?if $(var.UpgradeMinimumVersion)="3.11.0.0" ?>
<UpgradeVersion Property="UPGRADE_3_11_0" Minimum="3.11.7966.0" IncludeMinimum="yes" Maximum="3.11.7966.0" IncludeMaximum="yes" />
<UpgradeVersion Property="UPGRADE_3_11_1" Minimum="3.11.8009.0" IncludeMinimum="yes" Maximum="3.11.8009.0" IncludeMaximum="yes" />
<?endif ?>
2016-09-09 17:19:09 -03:00
</Upgrade>
2016-05-18 19:54:05 -03:00
<!-- Python 3.5.0 shipped with a different UpgradeCode -->
2015-10-01 19:19:39 -03:00
<Upgrade Id="A71530B9-E89D-53DB-9C2D-C6D7551876D8">
2016-05-18 19:54:05 -03:00
<UpgradeVersion Minimum="0.0.0.0" Property="REMOVE_350_LAUNCHER" />
2015-10-01 19:19:39 -03:00
</Upgrade>
2016-05-18 19:54:05 -03:00
<!-- Python 3.6.0a1 shipped with a different UpgradeCode -->
<Upgrade Id="394750C0-7880-5A8F-999F-933965FBCFB4">
2016-09-09 17:19:09 -03:00
<UpgradeVersion Minimum="0.0.0.0" Property="REMOVE_360A1_LAUNCHER" />
2016-05-18 19:54:05 -03:00
</Upgrade>
2015-02-06 02:08:48 -04:00
</Product>
</Wix>