aboutsummaryrefslogtreecommitdiff
path: root/src/wixlib/NetFx48.wxs
diff options
context:
space:
mode:
authorFroggieFrog <FroggieFrog@users.noreply.github.com>2020-01-15 14:22:37 +0100
committerSean Hall <r.sean.hall@gmail.com>2020-05-20 16:31:43 +1000
commit2dc387030d10478d413cfae5bf2f18abd25f1a51 (patch)
treedcf841bf48de056812cfb5d18a3061b44d92b269 /src/wixlib/NetFx48.wxs
parentf2e8523f44eeb88e418c93f00715896d663dc256 (diff)
downloadwix-2dc387030d10478d413cfae5bf2f18abd25f1a51.tar.gz
wix-2dc387030d10478d413cfae5bf2f18abd25f1a51.tar.bz2
wix-2dc387030d10478d413cfae5bf2f18abd25f1a51.zip
Add support for .NET Framework 4.7.2 and .NET Framework 4.8 to NetFxExtension. Based on https://github.com/wixtoolset/wix4/pull/267
Diffstat (limited to 'src/wixlib/NetFx48.wxs')
-rw-r--r--src/wixlib/NetFx48.wxs98
1 files changed, 98 insertions, 0 deletions
diff --git a/src/wixlib/NetFx48.wxs b/src/wixlib/NetFx48.wxs
new file mode 100644
index 00000000..5156c3f0
--- /dev/null
+++ b/src/wixlib/NetFx48.wxs
@@ -0,0 +1,98 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
4<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
5
6 <!--
7 .NET Framework installation state properties
8 Official documentation can be found at the following location:
9 .NET Framework 4.5/4.5.1/4.5.2/4.6/4.6.1/4.6.2/4.7/4.7.1/4.7.2/4.8 - https://msdn.microsoft.com/en-us/library/w0x726c2(v=vs.110).aspx
10 -->
11
12 <?define NetFx48MinRelease = 528040 ?>
13 <?define NetFx48WebLink = https://go.microsoft.com/fwlink/?LinkId=2085155 ?>
14 <?define NetFx48RedistLink = https://go.microsoft.com/fwlink/?linkid=2088631 ?>
15 <?define NetFx48EulaLink = https://referencesource.microsoft.com/license.html ?>
16
17 <Fragment>
18 <PropertyRef Id="WIXNETFX4RELEASEINSTALLED" />
19 <Property Id="WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED" Secure="yes" />
20 <SetProperty Id="WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED" Value="1" After="AppSearch">
21 WIXNETFX4RELEASEINSTALLED >= "#$(var.NetFx48MinRelease)"
22 </SetProperty>
23 </Fragment>
24
25 <Fragment>
26 <util:RegistrySearchRef Id="NETFRAMEWORK45"/>
27
28 <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx48Web" />
29 <WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx48EulaLink)" Overridable="yes" />
30 <WixVariable Id="NetFx48WebDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx48MinRelease)" Overridable="yes" />
31 <WixVariable Id="NetFx48WebInstallCondition" Value="" Overridable="yes" />
32 <WixVariable Id="NetFx48WebPackageDirectory" Value="redist\" Overridable="yes" />
33
34 <PackageGroup Id="NetFx48Web">
35 <ExePackage
36 InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
37 RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
38 UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
39 PerMachine="yes"
40 DetectCondition="!(wix.NetFx48WebDetectCondition)"
41 InstallCondition="!(wix.NetFx48WebInstallCondition)"
42 Id="NetFx48Web"
43 Vital="yes"
44 Permanent="yes"
45 Protocol="netfx4"
46 DownloadUrl="$(var.NetFx48WebLink)"
47 LogPathVariable="NetFx48FullLog"
48 Compressed="no"
49 Name="!(wix.NetFx48WebPackageDirectory)ndp48-web.exe">
50 <RemotePayload
51 CertificatePublicKey="793980B0038EBF0A88DAA08420FD3E66F53CC0CE"
52 CertificateThumbprint="9DC17888B5CFAD98B3CB35C1994E96227F061675"
53 Description="Microsoft .NET Framework 4.8 Setup"
54 Hash="755349ECD6A478FE010E466B29911D2388F6CE94"
55 ProductName="Microsoft .NET Framework 4.8"
56 Size="1486376"
57 Version="4.8.3761.0" />
58 </ExePackage>
59 </PackageGroup>
60 </Fragment>
61
62 <Fragment>
63 <util:RegistrySearchRef Id="NETFRAMEWORK45"/>
64
65 <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx48Redist" />
66 <WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx48EulaLink)" Overridable="yes" />
67 <WixVariable Id="NetFx48RedistDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx48MinRelease)" Overridable="yes" />
68 <WixVariable Id="NetFx48RedistInstallCondition" Value="" Overridable="yes" />
69 <WixVariable Id="NetFx48RedistPackageDirectory" Value="redist\" Overridable="yes" />
70
71 <PackageGroup Id="NetFx48Redist">
72 <ExePackage
73 InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
74 RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
75 UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
76 PerMachine="yes"
77 DetectCondition="!(wix.NetFx48RedistDetectCondition)"
78 InstallCondition="!(wix.NetFx48RedistInstallCondition)"
79 Id="NetFx48Redist"
80 Vital="yes"
81 Permanent="yes"
82 Protocol="netfx4"
83 DownloadUrl="$(var.NetFx48RedistLink)"
84 LogPathVariable="NetFx48FullLog"
85 Compressed="no"
86 Name="!(wix.NetFx48RedistPackageDirectory)ndp48-x86-x64-allos-enu.exe">
87 <RemotePayload
88 CertificatePublicKey="793980B0038EBF0A88DAA08420FD3E66F53CC0CE"
89 CertificateThumbprint="9DC17888B5CFAD98B3CB35C1994E96227F061675"
90 Description="Microsoft .NET Framework 4.8 Setup"
91 Hash="0D425249D42A01E7AB3AC243152FA7773C43F0BF"
92 ProductName="Microsoft .NET Framework 4.8"
93 Size="72721568"
94 Version="4.8.3761.0" />
95 </ExePackage>
96 </PackageGroup>
97 </Fragment>
98</Wix>