diff options
Diffstat (limited to 'src/wixlib/NetFx46.wxs')
-rw-r--r-- | src/wixlib/NetFx46.wxs | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/src/wixlib/NetFx46.wxs b/src/wixlib/NetFx46.wxs new file mode 100644 index 00000000..c4120e90 --- /dev/null +++ b/src/wixlib/NetFx46.wxs | |||
@@ -0,0 +1,96 @@ | |||
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 | |||
5 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> | ||
6 | |||
7 | <!-- | ||
8 | .NET Framework installation state properties | ||
9 | |||
10 | Official documentation can be found at the following location: | ||
11 | |||
12 | .NET Framework 4.5/4.5.1/4.5.2/4.6 - http://msdn.microsoft.com/en-us/library/w0x726c2(v=vs.110).aspx | ||
13 | --> | ||
14 | |||
15 | <?define NetFx46MinRelease = 393295 ?> | ||
16 | <?define NetFx46WebLink = http://go.microsoft.com/fwlink/?LinkId=560371 ?> | ||
17 | <?define NetFx46RedistLink = http://go.microsoft.com/fwlink/?LinkId=560369 ?> | ||
18 | |||
19 | <Fragment> | ||
20 | <PropertyRef Id="WIXNETFX4RELEASEINSTALLED" /> | ||
21 | <Property Id="WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED" Secure="yes" /> | ||
22 | <SetProperty Id="WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED" Value="1" After="AppSearch"> | ||
23 | WIXNETFX4RELEASEINSTALLED >= "#$(var.NetFx46MinRelease)" | ||
24 | </SetProperty> | ||
25 | </Fragment> | ||
26 | |||
27 | <Fragment> | ||
28 | <util:RegistrySearchRef Id="NETFRAMEWORK45"/> | ||
29 | |||
30 | <WixVariable Id="NetFx46WebDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx46MinRelease)" Overridable="yes" /> | ||
31 | <WixVariable Id="NetFx46WebInstallCondition" Value="" Overridable="yes" /> | ||
32 | <WixVariable Id="NetFx46WebPackageDirectory" Value="redist\" Overridable="yes" /> | ||
33 | |||
34 | <PackageGroup Id="NetFx46Web"> | ||
35 | <ExePackage | ||
36 | InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx46FullLog].html"" | ||
37 | RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx46FullLog].html"" | ||
38 | UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx46FullLog].html"" | ||
39 | PerMachine="yes" | ||
40 | DetectCondition="!(wix.NetFx46WebDetectCondition)" | ||
41 | InstallCondition="!(wix.NetFx46WebInstallCondition)" | ||
42 | Id="NetFx46Web" | ||
43 | Vital="yes" | ||
44 | Permanent="yes" | ||
45 | Protocol="netfx4" | ||
46 | DownloadUrl="$(var.NetFx46WebLink)" | ||
47 | LogPathVariable="NetFx46FullLog" | ||
48 | Compressed="no" | ||
49 | Name="!(wix.NetFx46WebPackageDirectory)NDP46-KB3045560-Web.exe"> | ||
50 | <RemotePayload | ||
51 | CertificatePublicKey="52868DFCA6E3AF2632389E6C1EE7D0468D3797D0" | ||
52 | CertificateThumbprint="3BDA323E552DB1FDE5F4FBEE75D6D5B2B187EEDC" | ||
53 | Description="Microsoft .NET Framework 4.6 Setup" | ||
54 | Hash="480CA134B9E3F2437DF10719D5A8C77DDEC0A4F1" | ||
55 | ProductName="Microsoft .NET Framework 4.6" | ||
56 | Size="1497400" | ||
57 | Version="4.6.81.0" /> | ||
58 | </ExePackage> | ||
59 | </PackageGroup> | ||
60 | </Fragment> | ||
61 | |||
62 | <Fragment> | ||
63 | <util:RegistrySearchRef Id="NETFRAMEWORK45"/> | ||
64 | |||
65 | <WixVariable Id="NetFx46RedistDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx46MinRelease)" Overridable="yes" /> | ||
66 | <WixVariable Id="NetFx46RedistInstallCondition" Value="" Overridable="yes" /> | ||
67 | <WixVariable Id="NetFx46RedistPackageDirectory" Value="redist\" Overridable="yes" /> | ||
68 | |||
69 | <PackageGroup Id="NetFx46Redist"> | ||
70 | <ExePackage | ||
71 | InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx46FullLog].html"" | ||
72 | RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx46FullLog].html"" | ||
73 | UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx46FullLog].html"" | ||
74 | PerMachine="yes" | ||
75 | DetectCondition="!(wix.NetFx46RedistDetectCondition)" | ||
76 | InstallCondition="!(wix.NetFx46RedistInstallCondition)" | ||
77 | Id="NetFx46Redist" | ||
78 | Vital="yes" | ||
79 | Permanent="yes" | ||
80 | Protocol="netfx4" | ||
81 | DownloadUrl="$(var.NetFx46RedistLink)" | ||
82 | LogPathVariable="NetFx46FullLog" | ||
83 | Compressed="no" | ||
84 | Name="!(wix.NetFx46RedistPackageDirectory)NDP46-KB3045557-x86-x64-AllOS-ENU.exe"> | ||
85 | <RemotePayload | ||
86 | CertificatePublicKey="52868DFCA6E3AF2632389E6C1EE7D0468D3797D0" | ||
87 | CertificateThumbprint="3BDA323E552DB1FDE5F4FBEE75D6D5B2B187EEDC" | ||
88 | Description="Microsoft .NET Framework 4.6 Setup" | ||
89 | Hash="3049A85843EAF65E89E2336D5FE6E85E416797BE" | ||
90 | ProductName="Microsoft .NET Framework 4.6" | ||
91 | Size="65444688" | ||
92 | Version="4.6.81.0" /> | ||
93 | </ExePackage> | ||
94 | </PackageGroup> | ||
95 | </Fragment> | ||
96 | </Wix> | ||