blob: b90787208928c9f0ddaece1c7f7e4ac787973da1 [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 Dower940f6a82015-10-31 12:17:11 -07004 <Property Id="REGISTRYKEY" Value="Software\Python\PythonCore\$(var.ShortVersion)$(var.PyArchExt)$(var.PyTestExt)" />
Steve Dowerbb240872015-02-05 22:08:48 -08005 </Fragment>
6
7 <Fragment>
Steve Dower49437492015-07-08 20:18:44 -07008 <Component Id="OptionalFeature" Guid="*" Directory="InstallDirectory">
9 <Condition>OPTIONALFEATURESREGISTRYKEY</Condition>
10 <RegistryKey Root="HKMU" Key="[OPTIONALFEATURESREGISTRYKEY]">
11 <RegistryValue Type="string" Name="$(var.OptionalFeatureName)" Value="$(var.Version)" KeyPath="yes" />
12 </RegistryKey>
13 </Component>
14 </Fragment>
15
16 <Fragment>
Steve Dowerbb240872015-02-05 22:08:48 -080017 <Property Id="UpgradeTable" Value="1" />
18
19 <Upgrade Id="$(var.UpgradeCode)">
20 <UpgradeVersion Property="DOWNGRADE" Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" />
21 <UpgradeVersion Property="UPGRADE" Minimum="$(var.UpgradeMinimumVersion)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="no" />
22 </Upgrade>
23
24 <?if $(var.UpgradeCode)!=$(var.CoreUpgradeCode) ?>
Steve Dowerc9fda9b2015-10-01 15:19:39 -070025 <?ifndef SkipMissingCore ?>
Steve Dowerbb240872015-02-05 22:08:48 -080026 <Upgrade Id="$(var.CoreUpgradeCode)">
Steve Dower102f72c2015-03-24 21:25:16 -070027 <UpgradeVersion Property="MISSING_CORE" Minimum="$(var.Version)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="yes" OnlyDetect="yes" />
Steve Dowerbb240872015-02-05 22:08:48 -080028 </Upgrade>
Steve Dowerc9fda9b2015-10-01 15:19:39 -070029 <Condition Message="!(loc.IncorrectCore)">Installed OR NOT MISSING_CORE</Condition>
30 <?endif ?>
Steve Dowerbb240872015-02-05 22:08:48 -080031 <?endif ?>
32
33 <Condition Message="!(loc.NoDowngrade)">Installed OR NOT DOWNGRADE</Condition>
Steve Dowerbb240872015-02-05 22:08:48 -080034 <Condition Message="!(loc.NoTargetDir)">Installed OR TARGETDIR OR Suppress_TARGETDIR_Check</Condition>
35
36 <InstallExecuteSequence>
Steve Dowerc9fda9b2015-10-01 15:19:39 -070037 <RemoveExistingProducts After="InstallInitialize" Overridable="yes">UPGRADE</RemoveExistingProducts>
Steve Dowerbb240872015-02-05 22:08:48 -080038 </InstallExecuteSequence>
39 </Fragment>
40
41 <Fragment>
42 <!-- Include an icon for the Programs and Features dialog -->
43 <Icon Id="ARPIcon" SourceFile="!(bindpath.src)PC\pycon.ico" />
44 <Property Id="ARPPRODUCTICON" Value="ARPIcon" />
45 <Property Id="ARPNOMODIFY" Value="1" />
46 <Property Id="DISABLEADVTSHORTCUTS" Value="1" />
47 </Fragment>
48
49 <Fragment>
50 <Directory Id="TARGETDIR" Name="SourceDir">
51 <Directory Id="InstallDirectory" ComponentGuidGenerationSeed="$(var.InstallDirectoryGuidSeed)" />
52 </Directory>
53 </Fragment>
54
55 <!-- Top-level directories -->
56 <Fragment>
57 <DirectoryRef Id="InstallDirectory">
58 <Directory Id="DLLs" Name="DLLs" />
59 </DirectoryRef>
60 </Fragment>
61
62 <Fragment>
63 <DirectoryRef Id="InstallDirectory">
64 <Directory Id="Doc" Name="Doc" />
65 </DirectoryRef>
66 </Fragment>
67
68 <Fragment>
69 <DirectoryRef Id="InstallDirectory">
70 <Directory Id="include" Name="include" />
71 </DirectoryRef>
72 </Fragment>
73
74 <Fragment>
75 <DirectoryRef Id="InstallDirectory">
76 <Directory Id="Lib" Name="Lib" />
77 </DirectoryRef>
78 </Fragment>
79
80 <Fragment>
81 <DirectoryRef Id="InstallDirectory">
82 <Directory Id="libs" Name="libs" />
83 </DirectoryRef>
84 </Fragment>
85
86 <Fragment>
87 <DirectoryRef Id="InstallDirectory">
88 <Directory Id="Scripts" Name="Scripts" />
89 </DirectoryRef>
90 </Fragment>
91
92 <Fragment>
93 <DirectoryRef Id="InstallDirectory">
94 <Directory Id="tcl" Name="tcl" />
95 </DirectoryRef>
96 </Fragment>
97
98 <Fragment>
99 <DirectoryRef Id="InstallDirectory">
100 <Directory Id="Tools" Name="Tools" />
101 </DirectoryRef>
102 </Fragment>
103
104 <!-- Start Menu folder -->
105 <Fragment>
106 <DirectoryRef Id="TARGETDIR">
107 <Directory Id="ProgramMenuFolder">
Steve Dower940f6a82015-10-31 12:17:11 -0700108 <Directory Id="MenuDir" Name="!(loc.ProductName)" />
Steve Dowerbb240872015-02-05 22:08:48 -0800109 </Directory>
110 </DirectoryRef>
111 </Fragment>
112</Wix>