blob: dd41ce88fbba3f7dc9bed328602dcf4de515fe82 [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
23 <Upgrade Id="$(var.UpgradeCode)">
24 <UpgradeVersion Property="DOWNGRADE" Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" />
25 <UpgradeVersion Property="UPGRADE" Minimum="$(var.UpgradeMinimumVersion)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="no" />
26 </Upgrade>
27
Steve Dower49621412016-05-18 15:54:05 -070028 <?ifdef CoreUpgradeCode ?>
Steve Dowerbb240872015-02-05 22:08:48 -080029 <?if $(var.UpgradeCode)!=$(var.CoreUpgradeCode) ?>
30 <Upgrade Id="$(var.CoreUpgradeCode)">
Steve Dower102f72c2015-03-24 21:25:16 -070031 <UpgradeVersion Property="MISSING_CORE" Minimum="$(var.Version)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="yes" OnlyDetect="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080032 </Upgrade>
Steve Dowerc9fda9b2015-10-01 15:19:39 -070033 <Condition Message="!(loc.IncorrectCore)">Installed OR NOT MISSING_CORE</Condition>
34 <?endif ?>
Steve Dowerbb240872015-02-05 22:08:48 -080035 <?endif ?>
36
37 <Condition Message="!(loc.NoDowngrade)">Installed OR NOT DOWNGRADE</Condition>
Steve Dowerbb240872015-02-05 22:08:48 -080038 <Condition Message="!(loc.NoTargetDir)">Installed OR TARGETDIR OR Suppress_TARGETDIR_Check</Condition>
39
40 <InstallExecuteSequence>
Steve Dowerc9fda9b2015-10-01 15:19:39 -070041 <RemoveExistingProducts After="InstallInitialize" Overridable="yes">UPGRADE</RemoveExistingProducts>
Steve Dowerbb240872015-02-05 22:08:48 -080042 </InstallExecuteSequence>
43 </Fragment>
44
45 <Fragment>
46 <!-- Include an icon for the Programs and Features dialog -->
47 <Icon Id="ARPIcon" SourceFile="!(bindpath.src)PC\pycon.ico" />
48 <Property Id="ARPPRODUCTICON" Value="ARPIcon" />
49 <Property Id="ARPNOMODIFY" Value="1" />
50 <Property Id="DISABLEADVTSHORTCUTS" Value="1" />
51 </Fragment>
52
53 <Fragment>
Steve Dower49621412016-05-18 15:54:05 -070054 <?ifdef InstallDirectoryGuidSeed ?>
Steve Dowerbb240872015-02-05 22:08:48 -080055 <Directory Id="TARGETDIR" Name="SourceDir">
56 <Directory Id="InstallDirectory" ComponentGuidGenerationSeed="$(var.InstallDirectoryGuidSeed)" />
57 </Directory>
Steve Dower49621412016-05-18 15:54:05 -070058 <?endif ?>
Steve Dowerbb240872015-02-05 22:08:48 -080059 </Fragment>
60
61 <!-- Top-level directories -->
62 <Fragment>
63 <DirectoryRef Id="InstallDirectory">
64 <Directory Id="DLLs" Name="DLLs" />
65 </DirectoryRef>
66 </Fragment>
67
68 <Fragment>
69 <DirectoryRef Id="InstallDirectory">
70 <Directory Id="Doc" Name="Doc" />
71 </DirectoryRef>
72 </Fragment>
73
74 <Fragment>
75 <DirectoryRef Id="InstallDirectory">
76 <Directory Id="include" Name="include" />
77 </DirectoryRef>
78 </Fragment>
79
80 <Fragment>
81 <DirectoryRef Id="InstallDirectory">
82 <Directory Id="Lib" Name="Lib" />
83 </DirectoryRef>
84 </Fragment>
85
86 <Fragment>
87 <DirectoryRef Id="InstallDirectory">
88 <Directory Id="libs" Name="libs" />
89 </DirectoryRef>
90 </Fragment>
91
92 <Fragment>
93 <DirectoryRef Id="InstallDirectory">
94 <Directory Id="Scripts" Name="Scripts" />
95 </DirectoryRef>
96 </Fragment>
97
98 <Fragment>
99 <DirectoryRef Id="InstallDirectory">
100 <Directory Id="tcl" Name="tcl" />
101 </DirectoryRef>
102 </Fragment>
103
104 <Fragment>
105 <DirectoryRef Id="InstallDirectory">
106 <Directory Id="Tools" Name="Tools" />
107 </DirectoryRef>
108 </Fragment>
109
110 <!-- Start Menu folder -->
111 <Fragment>
112 <DirectoryRef Id="TARGETDIR">
113 <Directory Id="ProgramMenuFolder">
Steve Dower940f6a82015-10-31 12:17:11 -0700114 <Directory Id="MenuDir" Name="!(loc.ProductName)" />
Steve Dowerbb240872015-02-05 22:08:48 -0800115 </Directory>
116 </DirectoryRef>
117 </Fragment>
118</Wix>