• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0"?>
2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
3     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
4     xmlns:dep="http://schemas.microsoft.com/wix/DependencyExtension">
5  <Bundle Name="!(loc.FullProductName)"
6          UpgradeCode="$(var.CoreUpgradeCode)"
7          Version="$(var.Version)"
8          IconSourceFile="..\..\..\PC\icons\setup.ico"
9          Manufacturer="!(loc.Manufacturer)"
10          AboutUrl="http://www.python.org/"
11          Compressed="no"
12          dep:ProviderKey="CPython-$(var.MajorVersionNumber).$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)">
13    <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)" />
26    <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)" />
28
29    <Variable Name="InstallAllUsers" Value="0" bal:Overridable="yes" />
30    <?if "$(var.PyTestExt)"="" ?>
31    <Variable Name="InstallLauncherAllUsers" Value="1" bal:Overridable="yes" />
32    <?else ?>
33    <Variable Name="InstallLauncherAllUsers" Value="0" />
34    <?endif ?>
35    <Variable Name="TargetDir" Value="" bal:Overridable="yes" />
36    <?if $(var.Platform)~="x64" ?>
37    <Variable Name="DefaultAllUsersTargetDir" Value="[ProgramFiles64Folder]Python[WinVerNoDot]" bal:Overridable="yes" />
38    <Variable Name="TargetPlatform" Value="x64" />
39    <?else ?>
40    <Variable Name="DefaultAllUsersTargetDir" Value="[ProgramFilesFolder]Python[WinVerNoDot]" bal:Overridable="yes" />
41    <Variable Name="TargetPlatform" Value="x86" />
42    <?endif ?>
43    <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" />
46
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
55    <Variable Name="InstallAllUsersState" Value="enabled" bal:Overridable="yes" />
56    <?if "$(var.PyTestExt)"="" ?>
57    <Variable Name="InstallLauncherAllUsersState" Value="enabled" bal:Overridable="yes" />
58    <?else ?>
59    <Variable Name="InstallLauncherAllUsersState" Value="disable" bal:Overridable="yes" />
60    <?endif ?>
61    <Variable Name="CustomInstallLauncherAllUsersState" Value="[InstallLauncherAllUsersState]" />
62    <Variable Name="TargetDirState" Value="enabled" />
63    <Variable Name="CustomBrowseButtonState" Value="enabled" />
64
65    <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" />
74    <Variable Name="Include_launcher" Value="-1" bal:Overridable="yes" />
75    <?if "$(var.PyTestExt)"="" ?>
76    <Variable Name="Include_launcherState" Value="enabled" bal:Overridable="yes" />
77    <?else ?>
78    <Variable Name="Include_launcherState" Value="disable" />
79    <?endif ?>
80    <Variable Name="Include_symbols" Value="0" bal:Overridable="yes" />
81    <Variable Name="Include_debug" Value="0" bal:Overridable="yes" />
82
83    <Variable Name="LauncherOnly" Value="0" bal:Overridable="yes" />
84    <Variable Name="DetectedLauncher" Value="0" />
85    <Variable Name="DetectedOldLauncher" Value="0" />
86
87    <Variable Name="AssociateFiles" Value="1" bal:Overridable="yes" />
88    <Variable Name="Shortcuts" Value="1" bal:Overridable="yes" />
89    <Variable Name="PrependPath" Value="0" bal:Overridable="yes" />
90    <Variable Name="CompileAll" Value="0" bal:Overridable="yes" />
91
92    <Variable Name="SimpleInstall" Value="0" bal:Overridable="yes" />
93    <Variable Name="SimpleInstallDescription" Value="" bal:Overridable="yes" />
94
95    <Chain ParallelCache="yes">
96      <PackageGroupRef Id="crt" />
97      <PackageGroupRef Id="core" />
98      <PackageGroupRef Id="dev" />
99      <PackageGroupRef Id="exe" />
100      <PackageGroupRef Id="lib" />
101      <PackageGroupRef Id="test" />
102      <PackageGroupRef Id="doc" />
103      <PackageGroupRef Id="tools" />
104      <PackageGroupRef Id="tcltk" />
105      <PackageGroupRef Id="launcher" />
106      <PackageGroupRef Id="pip" />
107      <PackageGroupRef Id="packageinstall" />
108      <PackageGroupRef Id="postinstall" />
109    </Chain>
110  </Bundle>
111</Wix>
112