Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 1 | <?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 Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 11 | <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 Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 18 | |
| 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 Dower | c9fda9b | 2015-10-01 15:19:39 -0700 | [diff] [blame] | 29 | |
| 30 | <RemoveExistingProducts After="InstallInitialize">UPGRADE or REMOVE_OLD_LAUNCHER</RemoveExistingProducts> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 31 | </InstallExecuteSequence> |
Steve Dower | c9fda9b | 2015-10-01 15:19:39 -0700 | [diff] [blame] | 32 | |
| 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 Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 37 | </Product> |
| 38 | </Wix> |