blob: 718b666a5c74b1268a3bca8b7ab5e1d7b99f063c [file] [log] [blame]
Steve Dowerbb240872015-02-05 22:08:48 -08001<?xml version="1.0" encoding="UTF-8"?>
2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3 <Product Id="*" Language="!(loc.LCID)" Name="!(loc.Title)" Version="$(var.Version)" Manufacturer="!(loc.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
4 <Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" />
5 <MediaTemplate EmbedCab="yes" CompressionLevel="high" />
6
7 <Property Id="Suppress_TARGETDIR_Check" Value="1" />
8 <PropertyRef Id="UpgradeTable" />
9 <PropertyRef Id="ARPPRODUCTICON" />
10
Steve Dowerbb240872015-02-05 22:08:48 -080011 <Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
12 <ComponentGroupRef Id="launcher_exe" Primary="yes" />
13 </Feature>
14 <Feature Id="AssociateFiles" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
15 <ComponentGroupRef Id="launcher_exe" />
16 <ComponentGroupRef Id="launcher_reg" />
17 </Feature>
Steve Dowerbb240872015-02-05 22:08:48 -080018
19 <Directory Id="TARGETDIR" Name="SourceDir">
20 <Directory Id="LauncherInstallDirectory" />
21 </Directory>
22
23 <CustomAction Id="SetLauncherInstallDirectoryLM" Property="LauncherInstallDirectory" Value="[WindowsFolder]" />
24 <CustomAction Id="SetLauncherInstallDirectoryCU" Property="LauncherInstallDirectory" Value="[LocalAppDataFolder]Programs\Python\Launcher" />
25
26 <InstallExecuteSequence>
27 <Custom Before="SetLauncherInstallDirectoryLM" Action="SetLauncherInstallDirectoryCU">NOT Installed AND NOT ALLUSERS=1</Custom>
28 <Custom Before="CostFinalize" Action="SetLauncherInstallDirectoryLM">NOT Installed AND ALLUSERS=1</Custom>
Steve Dowerc9fda9b2015-10-01 15:19:39 -070029
30 <RemoveExistingProducts After="InstallInitialize">UPGRADE or REMOVE_OLD_LAUNCHER</RemoveExistingProducts>
Steve Dowerbb240872015-02-05 22:08:48 -080031 </InstallExecuteSequence>
Steve Dowerc9fda9b2015-10-01 15:19:39 -070032
33 <!-- Python 3.5.0 shipped with an incorrect UpgradeCode -->
34 <Upgrade Id="A71530B9-E89D-53DB-9C2D-C6D7551876D8">
35 <UpgradeVersion Maximum="$(var.Version)" Property="REMOVE_OLD_LAUNCHER" />
36 </Upgrade>
Steve Dowerbb240872015-02-05 22:08:48 -080037 </Product>
38</Wix>