aboutsummaryrefslogtreecommitdiff
path: root/src/wixlib/NetFx462.wxs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixlib/NetFx462.wxs')
-rw-r--r--src/wixlib/NetFx462.wxs95
1 files changed, 95 insertions, 0 deletions
diff --git a/src/wixlib/NetFx462.wxs b/src/wixlib/NetFx462.wxs
new file mode 100644
index 00000000..08f5bd53
--- /dev/null
+++ b/src/wixlib/NetFx462.wxs
@@ -0,0 +1,95 @@
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
9 Official documentation can be found at the following location:
10
11 .NET Framework 4.5/4.5.1/4.5.2/4.6/4.6.1/4.6.2 - http://msdn.microsoft.com/en-us/library/w0x726c2(v=vs.110).aspx
12 -->
13
14 <?define NetFx462MinRelease = 394802 ?>
15 <?define NetFx462WebLink = http://go.microsoft.com/fwlink/?LinkId=780596 ?>
16 <?define NetFx462RedistLink = http://go.microsoft.com/fwlink/?LinkId=780600 ?>
17
18 <Fragment>
19 <PropertyRef Id="WIXNETFX4RELEASEINSTALLED" />
20 <Property Id="WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED" Secure="yes" />
21 <SetProperty Id="WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED" Value="1" After="AppSearch">
22 WIXNETFX4RELEASEINSTALLED >= "#$(var.NetFx462MinRelease)"
23 </SetProperty>
24 </Fragment>
25
26 <Fragment>
27 <util:RegistrySearchRef Id="NETFRAMEWORK45"/>
28
29 <WixVariable Id="NetFx462WebDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx462MinRelease)" Overridable="yes" />
30 <WixVariable Id="NetFx462WebInstallCondition" Value="" Overridable="yes" />
31 <WixVariable Id="NetFx462WebPackageDirectory" Value="redist\" Overridable="yes" />
32
33 <PackageGroup Id="NetFx462Web">
34 <ExePackage
35 InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx462FullLog].html&quot;"
36 RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx462FullLog].html&quot;"
37 UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx462FullLog].html&quot;"
38 PerMachine="yes"
39 DetectCondition="!(wix.NetFx462WebDetectCondition)"
40 InstallCondition="!(wix.NetFx462WebInstallCondition)"
41 Id="NetFx462Web"
42 Vital="yes"
43 Permanent="yes"
44 Protocol="netfx4"
45 DownloadUrl="$(var.NetFx462WebLink)"
46 LogPathVariable="NetFx462FullLog"
47 Compressed="no"
48 Name="!(wix.NetFx462WebPackageDirectory)NDP462-KB3151802-Web.exe">
49 <RemotePayload
50 CertificatePublicKey="52868DFCA6E3AF2632389E6C1EE7D0468D3797D0"
51 CertificateThumbprint="3BDA323E552DB1FDE5F4FBEE75D6D5B2B187EEDC"
52 Description="Microsoft .NET Framework 4.6.2 Setup"
53 Hash="C42E6ED280290648BBD59F664008852F4CFE4548"
54 ProductName="Microsoft .NET Framework 4.6.2"
55 Size="1429344"
56 Version="4.6.1590.0" />
57 </ExePackage>
58 </PackageGroup>
59 </Fragment>
60
61 <Fragment>
62 <util:RegistrySearchRef Id="NETFRAMEWORK45"/>
63
64 <WixVariable Id="NetFx462RedistDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx462MinRelease)" Overridable="yes" />
65 <WixVariable Id="NetFx462RedistInstallCondition" Value="" Overridable="yes" />
66 <WixVariable Id="NetFx462RedistPackageDirectory" Value="redist\" Overridable="yes" />
67
68 <PackageGroup Id="NetFx462Redist">
69 <ExePackage
70 InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx462FullLog].html&quot;"
71 RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx462FullLog].html&quot;"
72 UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx462FullLog].html&quot;"
73 PerMachine="yes"
74 DetectCondition="!(wix.NetFx462RedistDetectCondition)"
75 InstallCondition="!(wix.NetFx462RedistInstallCondition)"
76 Id="NetFx462Redist"
77 Vital="yes"
78 Permanent="yes"
79 Protocol="netfx4"
80 DownloadUrl="$(var.NetFx462RedistLink)"
81 LogPathVariable="NetFx462FullLog"
82 Compressed="no"
83 Name="!(wix.NetFx462RedistPackageDirectory)NDP462-KB3151800-x86-x64-AllOS-ENU.exe">
84 <RemotePayload
85 CertificatePublicKey="52868DFCA6E3AF2632389E6C1EE7D0468D3797D0"
86 CertificateThumbprint="3BDA323E552DB1FDE5F4FBEE75D6D5B2B187EEDC"
87 Description="Microsoft .NET Framework 4.6.2 Setup"
88 Hash="A70F856BDA33D45AD0A8AD035F73092441715431"
89 ProductName="Microsoft .NET Framework 4.6.2"
90 Size="62008080"
91 Version="4.6.1590.0" />
92 </ExePackage>
93 </PackageGroup>
94 </Fragment>
95</Wix>