bundle.wxs 5.7 KB
Newer Older
1 2
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
3 4
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
     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 12
          Compressed="no"
          dep:ProviderKey="CPython-$(var.MajorVersionNumber).$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)">
13 14 15 16 17 18 19 20 21 22 23 24 25
    <BootstrapperApplication Id="PythonBA" SourceFile="$(var.BootstrapApp)">
        <Payload Compressed='yes' SourceFile='Default.thm' />
        <Payload Compressed='yes' SourceFile='Default.wxl' />
        <Payload Compressed='yes' SourceFile='SideBar.png' />
    </BootstrapperApplication>

    <!-- May be set to "Removing" or "Repairing" -->
    <Variable Name="ActionLikeInstalling" Value="Installing" />
    <!-- May be set to "Uninstallation" or "Repair" -->
    <Variable Name="ActionLikeInstallation" Value="Setup" />

    <Variable Name="ShortVersion" Value="$(var.MajorVersionNumber).$(var.MinorVersionNumber)" />
    <Variable Name="ShortVersionNoDot" Value="$(var.MajorVersionNumber)$(var.MinorVersionNumber)" />
26 27
    <Variable Name="WinVer" Value="$(var.MajorVersionNumber).$(var.MinorVersionNumber)$(var.PyArchExt)$(var.PyTestExt)" />
    <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 33 34
    <?else ?>
    <Variable Name="InstallLauncherAllUsers" Value="0" />
    <?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 44 45
    <Variable Name="DefaultJustForMeTargetDir" Value="[LocalAppDataFolder]Programs\Python\Python[WinVerNoDot]" bal:Overridable="yes" />
    <Variable Name="OptionalFeaturesRegistryKey" Value="Software\Python\PythonCore\[WinVer]\InstalledFeatures" />
    <Variable Name="TargetDirRegistryKey" Value="Software\Python\PythonCore\[WinVer]\InstallPath" />
46 47 48 49 50 51 52 53 54
    
    <!--
    An empty string will use the other defaults based on InstallAllUsers
    (and switch dynamically in the UI). To get the old default, pass
    this property on the command line:
        DefaultCustomTargetDir=[WindowsVolume]Python[ShortVersionNoDot]
    -->
    <Variable Name="DefaultCustomTargetDir" Value="" bal:Overridable="yes" />

55
    <Variable Name="InstallAllUsersState" Value="enabled" bal:Overridable="yes" />
56
    <?if "$(var.PyTestExt)"="" ?>
57
    <Variable Name="InstallLauncherAllUsersState" Value="enabled" bal:Overridable="yes" />
58 59 60
    <?else ?>
    <Variable Name="InstallLauncherAllUsersState" Value="disable" bal:Overridable="yes" />
    <?endif ?>
61
    <Variable Name="CustomInstallLauncherAllUsersState" Value="[InstallLauncherAllUsersState]" />
62 63 64
    <Variable Name="TargetDirState" Value="enabled" />
    <Variable Name="CustomBrowseButtonState" Value="enabled" />

65 66 67 68 69 70 71 72 73
    <Variable Name="Include_core" Value="1" />
    <Variable Name="Include_exe" Value="1" bal:Overridable="yes" />
    <Variable Name="Include_dev" Value="1" bal:Overridable="yes" />
    <Variable Name="Include_lib" Value="1" bal:Overridable="yes" />
    <Variable Name="Include_test" Value="1" bal:Overridable="yes" />
    <Variable Name="Include_doc" Value="1" bal:Overridable="yes" />
    <Variable Name="Include_tools" Value="1" bal:Overridable="yes" />
    <Variable Name="Include_tcltk" Value="1" bal:Overridable="yes" />
    <Variable Name="Include_pip" Value="1" bal:Overridable="yes" />
74
    <?if "$(var.PyTestExt)"="" ?>
75
    <Variable Name="Include_launcher" Value="1" bal:Overridable="yes" />
76
    <Variable Name="Include_launcherState" Value="enabled" bal:Overridable="yes" />
77 78 79 80
    <?else ?>
    <Variable Name="Include_launcher" Value="0" />
    <Variable Name="Include_launcherState" Value="disable" />
    <?endif ?>
81 82
    <Variable Name="Include_symbols" Value="0" bal:Overridable="yes" />
    <Variable Name="Include_debug" Value="0" bal:Overridable="yes" />
83
    
84
    <Variable Name="LauncherOnly" Value="0" bal:Overridable="yes" />
85
    <Variable Name="DetectedLauncher" Value="0" />
86
    <Variable Name="DetectedOldLauncher" Value="0" />
87
    
88 89 90 91
    <Variable Name="AssociateFiles" Value="1" bal:Overridable="yes" />
    <Variable Name="Shortcuts" Value="1" bal:Overridable="yes" />
    <Variable Name="PrependPath" Value="0" bal:Overridable="yes" />
    <Variable Name="CompileAll" Value="0" bal:Overridable="yes" />
92 93
    
    <Variable Name="SimpleInstall" Value="0" bal:Overridable="yes" />
94
    <Variable Name="SimpleInstallDescription" Value="" bal:Overridable="yes" />
95 96 97 98 99 100 101 102 103 104 105 106
    
    <Chain ParallelCache="yes">
      <PackageGroupRef Id="crt" />
      <PackageGroupRef Id="core" />
      <PackageGroupRef Id="dev" />
      <PackageGroupRef Id="exe" />
      <PackageGroupRef Id="lib" />
      <PackageGroupRef Id="test" />
      <PackageGroupRef Id="doc" />
      <PackageGroupRef Id="tools" />
      <PackageGroupRef Id="tcltk" />
      <PackageGroupRef Id="launcher" />
107 108
      <PackageGroupRef Id="pip" />
      <PackageGroupRef Id="packageinstall" />
109 110 111 112
      <PackageGroupRef Id="postinstall" />
    </Chain>
  </Bundle>
</Wix>