aboutsummaryrefslogtreecommitdiff
path: root/src/wixlib/NetFx472.wxs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixlib/NetFx472.wxs')
-rw-r--r--src/wixlib/NetFx472.wxs98
1 files changed, 98 insertions, 0 deletions
diff --git a/src/wixlib/NetFx472.wxs b/src/wixlib/NetFx472.wxs
new file mode 100644
index 00000000..152d2245
--- /dev/null
+++ b/src/wixlib/NetFx472.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 - https://msdn.microsoft.com/en-us/library/w0x726c2(v=vs.110).aspx
10 -->
11
12 <?define NetFx472MinRelease = 461808 ?>
13 <?define NetFx472WebLink = https://go.microsoft.com/fwlink/?LinkId=863262 ?>
14 <?define NetFx472RedistLink = https://go.microsoft.com/fwlink/?LinkId=863265 ?>
15 <?define NetFx472EulaLink = https://referencesource.microsoft.com/license.html ?>
16
17 <Fragment>
18 <PropertyRef Id="WIXNETFX4RELEASEINSTALLED" />
19 <Property Id="WIX_IS_NETFRAMEWORK_472_OR_LATER_INSTALLED" Secure="yes" />
20 <SetProperty Id="WIX_IS_NETFRAMEWORK_472_OR_LATER_INSTALLED" Value="1" After="AppSearch">
21 WIXNETFX4RELEASEINSTALLED >= "#$(var.NetFx472MinRelease)"
22 </SetProperty>
23 </Fragment>
24
25 <Fragment>
26 <util:RegistrySearchRef Id="NETFRAMEWORK45"/>
27
28 <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx472Web" />
29 <WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx472EulaLink)" Overridable="yes" />
30 <WixVariable Id="NetFx472WebDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx472MinRelease)" Overridable="yes" />
31 <WixVariable Id="NetFx472WebInstallCondition" Value="" Overridable="yes" />
32 <WixVariable Id="NetFx472WebPackageDirectory" Value="redist\" Overridable="yes" />
33
34 <PackageGroup Id="NetFx472Web">
35 <ExePackage
36 InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx472FullLog].html&quot;"
37 RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx472FullLog].html&quot;"
38 UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx472FullLog].html&quot;"
39 PerMachine="yes"
40 DetectCondition="!(wix.NetFx472WebDetectCondition)"
41 InstallCondition="!(wix.NetFx472WebInstallCondition)"
42 Id="NetFx472Web"
43 Vital="yes"
44 Permanent="yes"
45 Protocol="netfx4"
46 DownloadUrl="$(var.NetFx472WebLink)"
47 LogPathVariable="NetFx472FullLog"
48 Compressed="no"
49 Name="!(wix.NetFx472WebPackageDirectory)NDP472-KB4054531-Web.exe">
50 <RemotePayload
51 CertificatePublicKey="C090C1A2CAFA9B967D9C87C7FE02F7C01FBDE4F2"
52 CertificateThumbprint="5EAD300DC7E4D637948ECB0ED829A072BD152E17"
53 Description="Microsoft .NET Framework 4.7.2 Setup"
54 Hash="507ECDADC23A27C2283BA130A2AA51650E6BC05B"
55 ProductName="Microsoft .NET Framework 4.7.2"
56 Size="1447320"
57 Version="4.7.3062.0" />
58 </ExePackage>
59 </PackageGroup>
60 </Fragment>
61
62 <Fragment>
63 <util:RegistrySearchRef Id="NETFRAMEWORK45"/>
64
65 <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx472Redist" />
66 <WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx472EulaLink)" Overridable="yes" />
67 <WixVariable Id="NetFx472RedistDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx472MinRelease)" Overridable="yes" />
68 <WixVariable Id="NetFx472RedistInstallCondition" Value="" Overridable="yes" />
69 <WixVariable Id="NetFx472RedistPackageDirectory" Value="redist\" Overridable="yes" />
70
71 <PackageGroup Id="NetFx472Redist">
72 <ExePackage
73 InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx472FullLog].html&quot;"
74 RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx472FullLog].html&quot;"
75 UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx472FullLog].html&quot;"
76 PerMachine="yes"
77 DetectCondition="!(wix.NetFx472RedistDetectCondition)"
78 InstallCondition="!(wix.NetFx472RedistInstallCondition)"
79 Id="NetFx472Redist"
80 Vital="yes"
81 Permanent="yes"
82 Protocol="netfx4"
83 DownloadUrl="$(var.NetFx472RedistLink)"
84 LogPathVariable="NetFx472FullLog"
85 Compressed="no"
86 Name="!(wix.NetFx472RedistPackageDirectory)NDP472-KB4054530-x86-x64-AllOS-ENU.exe">
87 <RemotePayload
88 CertificatePublicKey="C090C1A2CAFA9B967D9C87C7FE02F7C01FBDE4F2"
89 CertificateThumbprint="5EAD300DC7E4D637948ECB0ED829A072BD152E17"
90 Description="Microsoft .NET Framework 4.7.2 Setup"
91 Hash="D3A416DC5FC75758D41B4C0158ACA69270D2A904"
92 ProductName="Microsoft .NET Framework 4.7.2"
93 Size="71607232"
94 Version="4.7.3062.0" />
95 </ExePackage>
96 </PackageGroup>
97 </Fragment>
98</Wix>