blob: f6cff6fc351dc1837e521ae2146109e92b0d5e0f [file] [log] [blame]
Steve Dowerbb240872015-02-05 22:08:48 -08001<?xml version="1.0"?>
2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
Steve Dower190dbd92016-12-03 11:18:53 -08003 xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
4 xmlns:dep="http://schemas.microsoft.com/wix/DependencyExtension">
Steve Dowerbb240872015-02-05 22:08:48 -08005 <Bundle Name="!(loc.FullProductName)"
Steve Dowerc49de352015-03-08 15:29:39 -07006 UpgradeCode="$(var.CoreUpgradeCode)"
Steve Dowerbb240872015-02-05 22:08:48 -08007 Version="$(var.Version)"
Steve Dowerc7d1cf42016-09-05 14:05:17 -07008 IconSourceFile="..\..\..\PC\icons\setup.ico"
Steve Dowerbb240872015-02-05 22:08:48 -08009 Manufacturer="!(loc.Manufacturer)"
Steve Dowerc49de352015-03-08 15:29:39 -070010 AboutUrl="http://www.python.org/"
Steve Dower190dbd92016-12-03 11:18:53 -080011 Compressed="no"
12 dep:ProviderKey="CPython-$(var.MajorVersionNumber).$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)">
Steve Dowerbb240872015-02-05 22:08:48 -080013 <BootstrapperApplication Id="PythonBA" SourceFile="$(var.BootstrapApp)">
14 <Payload Compressed='yes' SourceFile='Default.thm' />
15 <Payload Compressed='yes' SourceFile='Default.wxl' />
16 <Payload Compressed='yes' SourceFile='SideBar.png' />
17 </BootstrapperApplication>
18
19 <!-- May be set to "Removing" or "Repairing" -->
20 <Variable Name="ActionLikeInstalling" Value="Installing" />
21 <!-- May be set to "Uninstallation" or "Repair" -->
22 <Variable Name="ActionLikeInstallation" Value="Setup" />
23
24 <Variable Name="ShortVersion" Value="$(var.MajorVersionNumber).$(var.MinorVersionNumber)" />
25 <Variable Name="ShortVersionNoDot" Value="$(var.MajorVersionNumber)$(var.MinorVersionNumber)" />
Steve Dower940f6a82015-10-31 12:17:11 -070026 <Variable Name="WinVer" Value="$(var.MajorVersionNumber).$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)" />
27 <Variable Name="WinVerNoDot" Value="$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)" />
Steve Dowerbb240872015-02-05 22:08:48 -080028
Steve Dower49437492015-07-08 20:18:44 -070029 <Variable Name="InstallAllUsers" Value="0" bal:Overridable="yes" />
Steve Dower5e2e7002015-11-09 07:31:05 -050030 <?if "$(var.PyTestExt)"="" ?>
Steve Dower2237bdc2015-07-16 16:33:55 -070031 <Variable Name="InstallLauncherAllUsers" Value="1" bal:Overridable="yes" />
Steve Dower940f6a82015-10-31 12:17:11 -070032 <?else ?>
33 <Variable Name="InstallLauncherAllUsers" Value="0" />
34 <?endif ?>
Steve Dower49437492015-07-08 20:18:44 -070035 <Variable Name="TargetDir" Value="" bal:Overridable="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080036 <?if $(var.Platform)~="x64" ?>
Steve Dower940f6a82015-10-31 12:17:11 -070037 <Variable Name="DefaultAllUsersTargetDir" Value="[ProgramFiles64Folder]Python[WinVerNoDot]" bal:Overridable="yes" />
Steve Dower49437492015-07-08 20:18:44 -070038 <Variable Name="TargetPlatform" Value="x64" />
Steve Dowerbb240872015-02-05 22:08:48 -080039 <?else ?>
Steve Dower940f6a82015-10-31 12:17:11 -070040 <Variable Name="DefaultAllUsersTargetDir" Value="[ProgramFilesFolder]Python[WinVerNoDot]" bal:Overridable="yes" />
Steve Dower49437492015-07-08 20:18:44 -070041 <Variable Name="TargetPlatform" Value="x86" />
Steve Dowerbb240872015-02-05 22:08:48 -080042 <?endif ?>
Steve Dower940f6a82015-10-31 12:17:11 -070043 <Variable Name="DefaultJustForMeTargetDir" Value="[LocalAppDataFolder]Programs\Python\Python[WinVerNoDot]" bal:Overridable="yes" />
44 <Variable Name="OptionalFeaturesRegistryKey" Value="Software\Python\PythonCore\[WinVer]\InstalledFeatures" />
45 <Variable Name="TargetDirRegistryKey" Value="Software\Python\PythonCore\[WinVer]\InstallPath" />
Steve Dowerbb240872015-02-05 22:08:48 -080046
47 <!--
48 An empty string will use the other defaults based on InstallAllUsers
49 (and switch dynamically in the UI). To get the old default, pass
50 this property on the command line:
51 DefaultCustomTargetDir=[WindowsVolume]Python[ShortVersionNoDot]
52 -->
53 <Variable Name="DefaultCustomTargetDir" Value="" bal:Overridable="yes" />
54
Steve Dower10f997d2015-12-02 08:28:51 -080055 <Variable Name="InstallAllUsersState" Value="enabled" bal:Overridable="yes" />
Steve Dower5e2e7002015-11-09 07:31:05 -050056 <?if "$(var.PyTestExt)"="" ?>
Steve Dower2237bdc2015-07-16 16:33:55 -070057 <Variable Name="InstallLauncherAllUsersState" Value="enabled" bal:Overridable="yes" />
Steve Dower940f6a82015-10-31 12:17:11 -070058 <?else ?>
59 <Variable Name="InstallLauncherAllUsersState" Value="disable" bal:Overridable="yes" />
60 <?endif ?>
Steve Dower2237bdc2015-07-16 16:33:55 -070061 <Variable Name="CustomInstallLauncherAllUsersState" Value="[InstallLauncherAllUsersState]" />
Steve Dowerbb240872015-02-05 22:08:48 -080062 <Variable Name="TargetDirState" Value="enabled" />
63 <Variable Name="CustomBrowseButtonState" Value="enabled" />
64
Steve Dower49437492015-07-08 20:18:44 -070065 <Variable Name="Include_core" Value="1" />
66 <Variable Name="Include_exe" Value="1" bal:Overridable="yes" />
67 <Variable Name="Include_dev" Value="1" bal:Overridable="yes" />
68 <Variable Name="Include_lib" Value="1" bal:Overridable="yes" />
69 <Variable Name="Include_test" Value="1" bal:Overridable="yes" />
70 <Variable Name="Include_doc" Value="1" bal:Overridable="yes" />
71 <Variable Name="Include_tools" Value="1" bal:Overridable="yes" />
72 <Variable Name="Include_tcltk" Value="1" bal:Overridable="yes" />
73 <Variable Name="Include_pip" Value="1" bal:Overridable="yes" />
Steve Dower5e2e7002015-11-09 07:31:05 -050074 <?if "$(var.PyTestExt)"="" ?>
Steve Dower49437492015-07-08 20:18:44 -070075 <Variable Name="Include_launcher" Value="1" bal:Overridable="yes" />
Steve Dower10f997d2015-12-02 08:28:51 -080076 <Variable Name="Include_launcherState" Value="enabled" bal:Overridable="yes" />
Steve Dower940f6a82015-10-31 12:17:11 -070077 <?else ?>
78 <Variable Name="Include_launcher" Value="0" />
79 <Variable Name="Include_launcherState" Value="disable" />
80 <?endif ?>
Steve Dower49437492015-07-08 20:18:44 -070081 <Variable Name="Include_symbols" Value="0" bal:Overridable="yes" />
82 <Variable Name="Include_debug" Value="0" bal:Overridable="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080083
Steve Dowera3d03ec2015-07-18 09:27:52 -070084 <Variable Name="LauncherOnly" Value="0" bal:Overridable="yes" />
Steve Dower8ffe4fd2015-10-11 18:05:11 -070085 <Variable Name="DetectedLauncher" Value="0" />
Steve Dower10f997d2015-12-02 08:28:51 -080086 <Variable Name="DetectedOldLauncher" Value="0" />
Steve Dowera3d03ec2015-07-18 09:27:52 -070087
Steve Dower49437492015-07-08 20:18:44 -070088 <Variable Name="AssociateFiles" Value="1" bal:Overridable="yes" />
89 <Variable Name="Shortcuts" Value="1" bal:Overridable="yes" />
90 <Variable Name="PrependPath" Value="0" bal:Overridable="yes" />
91 <Variable Name="CompileAll" Value="0" bal:Overridable="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080092
93 <Variable Name="SimpleInstall" Value="0" bal:Overridable="yes" />
Steve Dower2237bdc2015-07-16 16:33:55 -070094 <Variable Name="SimpleInstallDescription" Value="" bal:Overridable="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080095
96 <Chain ParallelCache="yes">
97 <PackageGroupRef Id="crt" />
98 <PackageGroupRef Id="core" />
99 <PackageGroupRef Id="dev" />
100 <PackageGroupRef Id="exe" />
101 <PackageGroupRef Id="lib" />
102 <PackageGroupRef Id="test" />
103 <PackageGroupRef Id="doc" />
104 <PackageGroupRef Id="tools" />
105 <PackageGroupRef Id="tcltk" />
106 <PackageGroupRef Id="launcher" />
Steve Dowerc4b76002015-10-01 15:18:53 -0700107 <PackageGroupRef Id="pip" />
108 <PackageGroupRef Id="packageinstall" />
Steve Dowerbb240872015-02-05 22:08:48 -0800109 <PackageGroupRef Id="postinstall" />
110 </Chain>
111 </Bundle>
112</Wix>