1- <?xml version =" 1.0" encoding =" UTF-8" ?>
2-
3- <!--
1+ <!--
42 IronPython installer root features, upgrades, and product definition
53 2006-01-01 BobArnso Created
64-->
@@ -15,16 +13,16 @@ WHEN PERFORMING MAJOR IP UPGRADES (e.g., 2.5 => 2.6):
1513
1614<?define UpgradeCode = " 664cd4f7-5c34-441e-b3d0-dba395e9414f" ?>
1715
18- <Wix xmlns =" http://schemas.microsoft.com/wix/2006/wi" xmlns : netfx =" http://schemas.microsoft.com/wix/NetFxExtension" >
19- <Product Id =" *" UpgradeCode =" $(var.UpgradeCode)" Name =" $(var.ProductShortName) $(var.ProductVersionText)" Version =" $(var.ProductVersion)" Language =" 1033" Manufacturer =" $(var.Manufacturer)" >
20- <Package Id =" *" Compressed =" yes" Description =" $(var.ProductShortName) $(var.ProductVersionText) ($(var.ProductVersion))" InstallerVersion =" 200" ShortNames =" no" Manufacturer =" $(var.Manufacturer)" InstallScope =" perMachine" />
16+ <Wix xmlns =" http://wixtoolset.org/schemas/v4/wxs" xmlns : ui =" http://wixtoolset.org/schemas/v4/wxs/ui" >
17+ <Package UpgradeCode =" $(var.UpgradeCode)" Name =" $(var.ProductShortName) $(var.ProductVersionText)" Version =" $(var.ProductVersion)" Language =" 1033" Manufacturer =" $(var.Manufacturer)" InstallerVersion =" 200" ShortNames =" no" >
18+ <SummaryInformation Description =" $(var.ProductShortName) $(var.ProductVersionText) ($(var.ProductVersion))" Manufacturer =" $(var.Manufacturer)" />
19+
2120 <Media Id =" 1" Cabinet =" IronPy.cab" EmbedCab =" yes" CompressionLevel =" high" />
2221
2322 <Icon Id =" ipy.ico" SourceFile =" ..\..\Src\IronPythonConsole\ipy.ico" />
2423
2524 <!-- Major upgrade -->
26- <MajorUpgrade AllowSameVersionUpgrades =" no"
27- DowngradeErrorMessage =" A later version of [ProductName] is already installed." />
25+ <MajorUpgrade AllowSameVersionUpgrades =" no" DowngradeErrorMessage =" A later version of [ProductName] is already installed." />
2826
2927 <!-- Normal upgrades -->
3028 <Upgrade Id =" $(var.UpgradeCode)" >
@@ -52,21 +50,11 @@ WHEN PERFORMING MAJOR IP UPGRADES (e.g., 2.5 => 2.6):
5250 </Property >
5351
5452 <!-- Launch conditions -->
55- <Condition Message =" An administrator must approve or install [ProductName]." > <![CDATA[ Privileged ]]> </ Condition >
56- <Condition Message =" [ProductName] requires .NET Framework 4.6.2 or later." > <![CDATA[ Installed OR WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED ]]> </ Condition >
53+ <Launch Condition = " Privileged " Message =" An administrator must approve or install [ProductName]." / >
54+ <Launch Condition = " Installed OR WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED " Message =" [ProductName] requires .NET Framework 4.6.2 or later." / >
5755
5856 <!-- Root directories -->
59- <Directory Id =" TARGETDIR" Name =" SourceDir" >
60- <Directory Id =" ProgramMenuFolder" >
61- <Directory Id =" IronPythonStartMenu" Name =" $(var.ProductShortName) $(var.ReleaseSeries)" />
62- </Directory >
6357
64- <Directory Id =" ProgramFiles64Folder" >
65- <Directory Id =" INSTALLDIR" Name =" $(var.ProductShortName) $(var.ReleaseSeries)" />
66- </Directory >
67-
68- <Directory Id =" GAC" Name =" GAC" />
69- </Directory >
7058
7159 <DirectoryRef Id =" IronPythonStartMenu" >
7260 <Component Id =" IronPythonCommonShortcuts" >
@@ -79,8 +67,8 @@ WHEN PERFORMING MAJOR IP UPGRADES (e.g., 2.5 => 2.6):
7967 </DirectoryRef >
8068
8169 <!-- Features - listed in the UI in the same order as they appear here -->
82- <Feature Id =" Feature_IronPython" ConfigurableDirectory =" INSTALLDIR" Absent = " disallow " AllowAdvertise =" no" Display =" expand" Level =" 1" Title =" IronPython" >
83- <Feature Id =" Feature_Core" Absent = " disallow " AllowAdvertise =" no" Display =" collapse" Level =" 1" Title =" IronPython" Description =" IronPython binaries for the Desktop CLR." >
70+ <Feature Id =" Feature_IronPython" ConfigurableDirectory =" INSTALLDIR" AllowAdvertise =" no" Display =" expand" Level =" 1" Title =" IronPython" AllowAbsent = " no " >
71+ <Feature Id =" Feature_Core" AllowAdvertise =" no" Display =" collapse" Level =" 1" Title =" IronPython" Description =" IronPython binaries for the Desktop CLR." AllowAbsent = " no " >
8472 <ComponentGroupRef Id =" Dlr" />
8573 <ComponentGroupRef Id =" IronPython" />
8674 <ComponentGroupRef Id =" IronPythonStdLib" />
@@ -93,7 +81,7 @@ WHEN PERFORMING MAJOR IP UPGRADES (e.g., 2.5 => 2.6):
9381
9482
9583 <!-- User interface -->
96- <UIRef Id =" WixUI_FeatureTree" />
84+ <ui : WixUI Id =" WixUI_FeatureTree" />
9785 <WixVariable Id =" WixUILicenseRtf" Value =" License.rtf" />
9886 <WixVariable Id =" WixUIDialogBmp" Value =" ironpython.bmp" />
9987 <WixVariable Id =" WixUIBannerBmp" Value =" banner.bmp" />
@@ -103,23 +91,33 @@ WHEN PERFORMING MAJOR IP UPGRADES (e.g., 2.5 => 2.6):
10391
10492 <!-- Install/uninstall pip -->
10593 <?if $(var.Platform)~=" x64" ?>
106- <CustomAction Id =" UpdatePip" BinaryKey = " WixCA " DllEntry =" WixQuietExec64" Execute =" deferred" Return =" ignore" Impersonate =" no" />
107- <CustomAction Id =" RemovePip" BinaryKey = " WixCA " DllEntry =" WixQuietExec64" Execute =" deferred" Return =" ignore" Impersonate =" no" />
108- <?else ?>
109- <CustomAction Id =" UpdatePip" BinaryKey = " WixCA " DllEntry =" WixQuietExec" Execute =" deferred" Return =" ignore" Impersonate =" no" />
110- <CustomAction Id =" RemovePip" BinaryKey = " WixCA " DllEntry =" WixQuietExec" Execute =" deferred" Return =" ignore" Impersonate =" no" />
111- <?endif ?>
94+ <CustomAction Id =" UpdatePip" DllEntry =" WixQuietExec64" Execute =" deferred" Return =" ignore" Impersonate =" no" BinaryRef = " Wix4UtilCA_X86 " />
95+ <CustomAction Id =" RemovePip" DllEntry =" WixQuietExec64" Execute =" deferred" Return =" ignore" Impersonate =" no" BinaryRef = " Wix4UtilCA_X86 " />
96+ <?else ?>
97+ <CustomAction Id =" UpdatePip" DllEntry =" WixQuietExec" Execute =" deferred" Return =" ignore" Impersonate =" no" BinaryRef = " Wix4UtilCA_X86 " />
98+ <CustomAction Id =" RemovePip" DllEntry =" WixQuietExec" Execute =" deferred" Return =" ignore" Impersonate =" no" BinaryRef = " Wix4UtilCA_X86 " />
99+ <?endif ?>
112100
113101 <SetProperty Id =" UpdatePip" Value =" " [#ipy.exe]" -E -s -m ensurepip -U --default-pip" Before =" UpdatePip" Sequence =" execute" />
114102 <SetProperty Id =" RemovePip" Value =" " [#ipy.exe]" -E -s -B -m ensurepip._uninstall" Before =" RemovePip" Sequence =" execute" />
115103
116104 <!-- Sequences -->
117105 <InstallExecuteSequence >
118106 <Custom Action =" SetInstallLocation" After =" InstallValidate" />
119- <Custom Action =" UpdatePip" After =" InstallFiles" > <![CDATA[ (& Pip_Setup=3) AND NOT Installed]]> </ Custom >
120- <Custom Action =" RemovePip" Before =" RemoveFiles" > <![CDATA[ (!Pip_Setup<> 2) AND Installed]]> </ Custom >
107+ <Custom Action =" UpdatePip" After =" InstallFiles" Condition = " ( & Pip_Setup=3) AND NOT Installed" / >
108+ <Custom Action =" RemovePip" Before =" RemoveFiles" Condition = " (!Pip_Setup<> 2) AND Installed" / >
121109 </InstallExecuteSequence >
122110
123- </Product >
111+
112+ <StandardDirectory Id =" ProgramMenuFolder" >
113+ <Directory Id =" IronPythonStartMenu" Name =" $(var.ProductShortName) $(var.ReleaseSeries)" />
114+ </StandardDirectory >
115+
116+ <StandardDirectory Id =" ProgramFiles64Folder" >
117+ <Directory Id =" INSTALLDIR" Name =" $(var.ProductShortName) $(var.ReleaseSeries)" />
118+ </StandardDirectory >
119+
120+ <Directory Id =" GAC" Name =" GAC" />
121+ </Package >
124122
125123</Wix >
0 commit comments