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://schemas.microsoft.com/wix/2006/wi" xmlns : util =" http://schemas.microsoft.com/wix/UtilExtension" >
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.8 - https://msdn.microsoft.com/en-us/library/w0x726c2(v=vs.110).aspx
10
+ -->
11
+
12
+ <?define NetFx 48MinRelease = 528040 ?>
13
+ <?define NetFx 48WebLink = https ://go.microsoft.com/fwlink/?LinkId=2085155 ?>
14
+ <?define NetFx 48RedistLink = https ://go.microsoft.com/fwlink/?linkid=2088631 ?>
15
+ <?define NetFx 48EulaLink = 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 > = $(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 " [WixBundleName]" /log " [NetFx48FullLog].html" "
37
+ RepairCommand=" /q /norestart /repair /ChainingPackage " [WixBundleName]" /log " [NetFx48FullLog].html" "
38
+ UninstallCommand=" /uninstall /q /norestart /ChainingPackage " [WixBundleName]" /log " [NetFx48FullLog].html" "
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=" F49F9B33E25E33CCA0BFB15A62B7C29FFAB3880B"
52
+ CertificateThumbprint=" ABDCA79AF9DD48A0EA702AD45260B3C03093FB4B"
53
+ Description=" Microsoft .NET Framework 4.8 Setup"
54
+ Hash=" 4181398AA1FD5190155AC3A388434E5F7EA0B667"
55
+ ProductName=" Microsoft .NET Framework 4.8"
56
+ Size=" 1439328"
57
+ Version=" 4.8.4115.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 > = $(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 " [WixBundleName]" /log " [NetFx48FullLog].html" "
74
+ RepairCommand=" /q /norestart /repair /ChainingPackage " [WixBundleName]" /log " [NetFx48FullLog].html" "
75
+ UninstallCommand=" /uninstall /q /norestart /ChainingPackage " [WixBundleName]" /log " [NetFx48FullLog].html" "
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=" F49F9B33E25E33CCA0BFB15A62B7C29FFAB3880B"
89
+ CertificateThumbprint=" ABDCA79AF9DD48A0EA702AD45260B3C03093FB4B"
90
+ Description=" Microsoft .NET Framework 4.8 Setup"
91
+ Hash=" E322E2E0FB4C86172C38A97DC6C71982134F0570"
92
+ ProductName=" Microsoft .NET Framework 4.8"
93
+ Size=" 121307088"
94
+ Version=" 4.8.4115.0" />
95
+ </ExePackage >
96
+ </PackageGroup >
97
+ </Fragment >
98
+ </Wix >
0 commit comments