blob: eda088404fa6fdfd48abc76471f815421912fec7 [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)"
8 IconSourceFile="bundle.ico"
9 Manufacturer="!(loc.Manufacturer)"
Steve Dowerc49de352015-03-08 15:29:39 -070010 AboutUrl="http://www.python.org/"
Steve Dowerbb240872015-02-05 22:08:48 -080011 DisableModify="button"
Steve Dower190dbd92016-12-03 11:18:53 -080012 Compressed="no"
13 dep:ProviderKey="CPython-$(var.MajorVersionNumber).$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)">
Steve Dowerbb240872015-02-05 22:08:48 -080014 <BootstrapperApplication Id="PythonBA" SourceFile="$(var.BootstrapApp)">
15 <Payload Compressed='yes' SourceFile='Default.thm' />
16 <Payload Compressed='yes' SourceFile='Default.wxl' />
17 <Payload Compressed='yes' SourceFile='SideBar.png' />
18 </BootstrapperApplication>
19
20 <!-- May be set to "Removing" or "Repairing" -->
21 <Variable Name="ActionLikeInstalling" Value="Installing" />
22 <!-- May be set to "Uninstallation" or "Repair" -->
23 <Variable Name="ActionLikeInstallation" Value="Setup" />
24
25 <Variable Name="ShortVersion" Value="$(var.MajorVersionNumber).$(var.MinorVersionNumber)" />
26 <Variable Name="ShortVersionNoDot" Value="$(var.MajorVersionNumber)$(var.MinorVersionNumber)" />
Steve Dower940f6a82015-10-31 12:17:11 -070027 <Variable Name="WinVer" Value="$(var.MajorVersionNumber).$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)" />
28 <Variable Name="WinVerNoDot" Value="$(var.MajorVersionNumber)$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)" />
Steve Dowerbb240872015-02-05 22:08:48 -080029
Steve Dower49437492015-07-08 20:18:44 -070030 <Variable Name="InstallAllUsers" Value="0" bal:Overridable="yes" />
Steve Dower5e2e7002015-11-09 07:31:05 -050031 <?if "$(var.PyTestExt)"="" ?>
Steve Dower2237bdc2015-07-16 16:33:55 -070032 <Variable Name="InstallLauncherAllUsers" Value="1" bal:Overridable="yes" />
Steve Dower940f6a82015-10-31 12:17:11 -070033 <?else ?>
34 <Variable Name="InstallLauncherAllUsers" Value="0" />
35 <?endif ?>
Steve Dower49437492015-07-08 20:18:44 -070036 <Variable Name="TargetDir" Value="" bal:Overridable="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080037 <?if $(var.Platform)~="x64" ?>
Steve Dower940f6a82015-10-31 12:17:11 -070038 <Variable Name="DefaultAllUsersTargetDir" Value="[ProgramFiles64Folder]Python[WinVerNoDot]" bal:Overridable="yes" />
Steve Dower49437492015-07-08 20:18:44 -070039 <Variable Name="TargetPlatform" Value="x64" />
Steve Dowerbb240872015-02-05 22:08:48 -080040 <?else ?>
Steve Dower940f6a82015-10-31 12:17:11 -070041 <Variable Name="DefaultAllUsersTargetDir" Value="[ProgramFilesFolder]Python[WinVerNoDot]" bal:Overridable="yes" />
Steve Dower49437492015-07-08 20:18:44 -070042 <Variable Name="TargetPlatform" Value="x86" />
Steve Dowerbb240872015-02-05 22:08:48 -080043 <?endif ?>
Steve Dower940f6a82015-10-31 12:17:11 -070044 <Variable Name="DefaultJustForMeTargetDir" Value="[LocalAppDataFolder]Programs\Python\Python[WinVerNoDot]" bal:Overridable="yes" />
45 <Variable Name="OptionalFeaturesRegistryKey" Value="Software\Python\PythonCore\[WinVer]\InstalledFeatures" />
46 <Variable Name="TargetDirRegistryKey" Value="Software\Python\PythonCore\[WinVer]\InstallPath" />
Steve Dowerbb240872015-02-05 22:08:48 -080047
48 <!--
49 An empty string will use the other defaults based on InstallAllUsers
50 (and switch dynamically in the UI). To get the old default, pass
51 this property on the command line:
52 DefaultCustomTargetDir=[WindowsVolume]Python[ShortVersionNoDot]
53 -->
54 <Variable Name="DefaultCustomTargetDir" Value="" bal:Overridable="yes" />
55
Steve Dower10f997d2015-12-02 08:28:51 -080056 <Variable Name="InstallAllUsersState" Value="enabled" bal:Overridable="yes" />
Steve Dower5e2e7002015-11-09 07:31:05 -050057 <?if "$(var.PyTestExt)"="" ?>
Steve Dower2237bdc2015-07-16 16:33:55 -070058 <Variable Name="InstallLauncherAllUsersState" Value="enabled" bal:Overridable="yes" />
Steve Dower940f6a82015-10-31 12:17:11 -070059 <?else ?>
60 <Variable Name="InstallLauncherAllUsersState" Value="disable" bal:Overridable="yes" />
61 <?endif ?>
Steve Dower2237bdc2015-07-16 16:33:55 -070062 <Variable Name="CustomInstallLauncherAllUsersState" Value="[InstallLauncherAllUsersState]" />
Steve Dowerbb240872015-02-05 22:08:48 -080063 <Variable Name="TargetDirState" Value="enabled" />
64 <Variable Name="CustomBrowseButtonState" Value="enabled" />
65
Steve Dower49437492015-07-08 20:18:44 -070066 <Variable Name="Include_core" Value="1" />
67 <Variable Name="Include_exe" Value="1" bal:Overridable="yes" />
68 <Variable Name="Include_dev" Value="1" bal:Overridable="yes" />
69 <Variable Name="Include_lib" Value="1" bal:Overridable="yes" />
70 <Variable Name="Include_test" Value="1" bal:Overridable="yes" />
71 <Variable Name="Include_doc" Value="1" bal:Overridable="yes" />
72 <Variable Name="Include_tools" Value="1" bal:Overridable="yes" />
73 <Variable Name="Include_tcltk" Value="1" bal:Overridable="yes" />
74 <Variable Name="Include_pip" Value="1" bal:Overridable="yes" />
Steve Dower5e2e7002015-11-09 07:31:05 -050075 <?if "$(var.PyTestExt)"="" ?>
Steve Dower49437492015-07-08 20:18:44 -070076 <Variable Name="Include_launcher" Value="1" bal:Overridable="yes" />
Steve Dower10f997d2015-12-02 08:28:51 -080077 <Variable Name="Include_launcherState" Value="enabled" bal:Overridable="yes" />
Steve Dower940f6a82015-10-31 12:17:11 -070078 <?else ?>
79 <Variable Name="Include_launcher" Value="0" />
80 <Variable Name="Include_launcherState" Value="disable" />
81 <?endif ?>
Steve Dower49437492015-07-08 20:18:44 -070082 <Variable Name="Include_symbols" Value="0" bal:Overridable="yes" />
83 <Variable Name="Include_debug" Value="0" bal:Overridable="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080084
Steve Dowera3d03ec2015-07-18 09:27:52 -070085 <Variable Name="LauncherOnly" Value="0" bal:Overridable="yes" />
Steve Dower8ffe4fd2015-10-11 18:05:11 -070086 <Variable Name="DetectedLauncher" Value="0" />
Steve Dower10f997d2015-12-02 08:28:51 -080087 <Variable Name="DetectedOldLauncher" Value="0" />
Steve Dowera3d03ec2015-07-18 09:27:52 -070088
Steve Dower49437492015-07-08 20:18:44 -070089 <Variable Name="AssociateFiles" Value="1" bal:Overridable="yes" />
90 <Variable Name="Shortcuts" Value="1" bal:Overridable="yes" />
91 <Variable Name="PrependPath" Value="0" bal:Overridable="yes" />
92 <Variable Name="CompileAll" Value="0" bal:Overridable="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080093
94 <Variable Name="SimpleInstall" Value="0" bal:Overridable="yes" />
Steve Dower2237bdc2015-07-16 16:33:55 -070095 <Variable Name="SimpleInstallDescription" Value="" bal:Overridable="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080096
97 <Chain ParallelCache="yes">
98 <PackageGroupRef Id="crt" />
99 <PackageGroupRef Id="core" />
100 <PackageGroupRef Id="dev" />
101 <PackageGroupRef Id="exe" />
102 <PackageGroupRef Id="lib" />
103 <PackageGroupRef Id="test" />
104 <PackageGroupRef Id="doc" />
105 <PackageGroupRef Id="tools" />
106 <PackageGroupRef Id="tcltk" />
107 <PackageGroupRef Id="launcher" />
Steve Dowerc4b76002015-10-01 15:18:53 -0700108 <PackageGroupRef Id="pip" />
109 <PackageGroupRef Id="packageinstall" />
Steve Dowerbb240872015-02-05 22:08:48 -0800110 <PackageGroupRef Id="postinstall" />
111 </Chain>
112 </Bundle>
113</Wix>