blob: 398d94a24d554f8327ab0f5805f5b2877423c297 [file] [log] [blame]
Steve Dowerbb240872015-02-05 22:08:48 -08001<?xml version="1.0" encoding="UTF-8"?>
2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3 <Fragment>
Steve Dower05338262016-07-24 18:04:29 -07004 <Property Id="ROOTREGISTRYKEY" Value="Software\Python\PythonCore" />
5 </Fragment>
6
7 <Fragment>
Steve Dower940f6a82015-10-31 12:17:11 -07008 <Property Id="REGISTRYKEY" Value="Software\Python\PythonCore\$(var.ShortVersion)$(var.PyArchExt)$(var.PyTestExt)" />
Steve Dowerbb240872015-02-05 22:08:48 -08009 </Fragment>
10
11 <Fragment>
Steve Dower49437492015-07-08 20:18:44 -070012 <Component Id="OptionalFeature" Guid="*" Directory="InstallDirectory">
13 <Condition>OPTIONALFEATURESREGISTRYKEY</Condition>
14 <RegistryKey Root="HKMU" Key="[OPTIONALFEATURESREGISTRYKEY]">
15 <RegistryValue Type="string" Name="$(var.OptionalFeatureName)" Value="$(var.Version)" KeyPath="yes" />
16 </RegistryKey>
17 </Component>
18 </Fragment>
19
20 <Fragment>
Steve Dowerbb240872015-02-05 22:08:48 -080021 <Property Id="UpgradeTable" Value="1" />
22
Steve Dowerfa526bd2016-09-09 13:19:09 -070023 <?ifndef SuppressUpgradeTable ?>
Steve Dowerbb240872015-02-05 22:08:48 -080024 <Upgrade Id="$(var.UpgradeCode)">
25 <UpgradeVersion Property="DOWNGRADE" Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" />
26 <UpgradeVersion Property="UPGRADE" Minimum="$(var.UpgradeMinimumVersion)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="no" />
27 </Upgrade>
Steve Dowerfa526bd2016-09-09 13:19:09 -070028 <?endif ?>
Steve Dowerbb240872015-02-05 22:08:48 -080029
Steve Dower49621412016-05-18 15:54:05 -070030 <?ifdef CoreUpgradeCode ?>
Steve Dowerbb240872015-02-05 22:08:48 -080031 <?if $(var.UpgradeCode)!=$(var.CoreUpgradeCode) ?>
32 <Upgrade Id="$(var.CoreUpgradeCode)">
Steve Dower102f72c2015-03-24 21:25:16 -070033 <UpgradeVersion Property="MISSING_CORE" Minimum="$(var.Version)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="yes" OnlyDetect="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080034 </Upgrade>
Steve Dowerc9fda9b2015-10-01 15:19:39 -070035 <Condition Message="!(loc.IncorrectCore)">Installed OR NOT MISSING_CORE</Condition>
36 <?endif ?>
Steve Dowerbb240872015-02-05 22:08:48 -080037 <?endif ?>
38
39 <Condition Message="!(loc.NoDowngrade)">Installed OR NOT DOWNGRADE</Condition>
Steve Dowerbb240872015-02-05 22:08:48 -080040 <Condition Message="!(loc.NoTargetDir)">Installed OR TARGETDIR OR Suppress_TARGETDIR_Check</Condition>
41
42 <InstallExecuteSequence>
Steve Dowerc9fda9b2015-10-01 15:19:39 -070043 <RemoveExistingProducts After="InstallInitialize" Overridable="yes">UPGRADE</RemoveExistingProducts>
Steve Dowerbb240872015-02-05 22:08:48 -080044 </InstallExecuteSequence>
45 </Fragment>
46
47 <Fragment>
48 <!-- Include an icon for the Programs and Features dialog -->
Steve Dower45659862016-09-05 14:51:41 -070049 <Icon Id="ARPIcon" SourceFile="!(bindpath.src)PC\icons\python.ico" />
Steve Dowerbb240872015-02-05 22:08:48 -080050 <Property Id="ARPPRODUCTICON" Value="ARPIcon" />
51 <Property Id="ARPNOMODIFY" Value="1" />
52 <Property Id="DISABLEADVTSHORTCUTS" Value="1" />
53 </Fragment>
54
55 <Fragment>
Steve Dower49621412016-05-18 15:54:05 -070056 <?ifdef InstallDirectoryGuidSeed ?>
Steve Dowerbb240872015-02-05 22:08:48 -080057 <Directory Id="TARGETDIR" Name="SourceDir">
58 <Directory Id="InstallDirectory" ComponentGuidGenerationSeed="$(var.InstallDirectoryGuidSeed)" />
59 </Directory>
Steve Dower49621412016-05-18 15:54:05 -070060 <?endif ?>
Steve Dowerbb240872015-02-05 22:08:48 -080061 </Fragment>
62
63 <!-- Top-level directories -->
64 <Fragment>
65 <DirectoryRef Id="InstallDirectory">
Steve Dower425ec152016-10-09 20:18:52 -070066 <Directory Id="DLLs" Name="DLLs">
67 <Directory Id="Catalogs" />
68 </Directory>
Steve Dowerbb240872015-02-05 22:08:48 -080069 </DirectoryRef>
70 </Fragment>
71
72 <Fragment>
73 <DirectoryRef Id="InstallDirectory">
74 <Directory Id="Doc" Name="Doc" />
75 </DirectoryRef>
76 </Fragment>
77
78 <Fragment>
79 <DirectoryRef Id="InstallDirectory">
80 <Directory Id="include" Name="include" />
81 </DirectoryRef>
82 </Fragment>
83
84 <Fragment>
85 <DirectoryRef Id="InstallDirectory">
86 <Directory Id="Lib" Name="Lib" />
87 </DirectoryRef>
88 </Fragment>
89
90 <Fragment>
91 <DirectoryRef Id="InstallDirectory">
92 <Directory Id="libs" Name="libs" />
93 </DirectoryRef>
94 </Fragment>
95
96 <Fragment>
97 <DirectoryRef Id="InstallDirectory">
98 <Directory Id="Scripts" Name="Scripts" />
99 </DirectoryRef>
100 </Fragment>
101
102 <Fragment>
103 <DirectoryRef Id="InstallDirectory">
104 <Directory Id="tcl" Name="tcl" />
105 </DirectoryRef>
106 </Fragment>
107
108 <Fragment>
109 <DirectoryRef Id="InstallDirectory">
110 <Directory Id="Tools" Name="Tools" />
111 </DirectoryRef>
112 </Fragment>
113
114 <!-- Start Menu folder -->
115 <Fragment>
116 <DirectoryRef Id="TARGETDIR">
117 <Directory Id="ProgramMenuFolder">
Steve Dower940f6a82015-10-31 12:17:11 -0700118 <Directory Id="MenuDir" Name="!(loc.ProductName)" />
Steve Dowerbb240872015-02-05 22:08:48 -0800119 </Directory>
120 </DirectoryRef>
121 </Fragment>
122</Wix>