diff options
Diffstat (limited to 'src/wixlib/NetFx451.wxs')
-rw-r--r-- | src/wixlib/NetFx451.wxs | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/src/wixlib/NetFx451.wxs b/src/wixlib/NetFx451.wxs new file mode 100644 index 00000000..7feff124 --- /dev/null +++ b/src/wixlib/NetFx451.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 - http://msdn.microsoft.com/en-us/library/5a4x27ek.aspx, http://msdn.microsoft.com/en-us/library/ee942965(v=VS.110).aspx | ||
13 | --> | ||
14 | |||
15 | <?define NetFx451MinRelease = 378675 ?> | ||
16 | <?define NetFx451WebLink = http://go.microsoft.com/fwlink/?LinkId=322115 ?> | ||
17 | <?define NetFx451RedistLink = http://go.microsoft.com/fwlink/?LinkId=322116 ?> | ||
18 | |||
19 | <Fragment> | ||
20 | <PropertyRef Id="WIXNETFX4RELEASEINSTALLED" /> | ||
21 | <Property Id="WIX_IS_NETFRAMEWORK_451_OR_LATER_INSTALLED" Secure="yes" /> | ||
22 | <SetProperty Id="WIX_IS_NETFRAMEWORK_451_OR_LATER_INSTALLED" Value="1" After="AppSearch"> | ||
23 | WIXNETFX4RELEASEINSTALLED >= "#$(var.NetFx451MinRelease)" | ||
24 | </SetProperty> | ||
25 | </Fragment> | ||
26 | |||
27 | <Fragment> | ||
28 | <util:RegistrySearchRef Id="NETFRAMEWORK45"/> | ||
29 | |||
30 | <WixVariable Id="NetFx451WebDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx451MinRelease)" Overridable="yes" /> | ||
31 | <WixVariable Id="NetFx451WebInstallCondition" Value="" Overridable="yes" /> | ||
32 | <WixVariable Id="NetFx451WebPackageDirectory" Value="redist\" Overridable="yes" /> | ||
33 | |||
34 | <PackageGroup Id="NetFx451Web"> | ||
35 | <ExePackage | ||
36 | InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx451FullWebLog].html"" | ||
37 | RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx451FullWebLog].html"" | ||
38 | UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx451FullWebLog].html"" | ||
39 | PerMachine="yes" | ||
40 | DetectCondition="!(wix.NetFx451WebDetectCondition)" | ||
41 | InstallCondition="!(wix.NetFx451WebInstallCondition)" | ||
42 | Id="NetFx451Web" | ||
43 | Vital="yes" | ||
44 | Permanent="yes" | ||
45 | Protocol="netfx4" | ||
46 | DownloadUrl="$(var.NetFx451WebLink)" | ||
47 | LogPathVariable="NetFx451FullWebLog" | ||
48 | Compressed="no" | ||
49 | Name="!(wix.NetFx451WebPackageDirectory)NDP451-KB2859818-Web.exe"> | ||
50 | <RemotePayload | ||
51 | Size="1021432" | ||
52 | Version="4.5.50938.18408" | ||
53 | ProductName="Microsoft .NET Framework 4.5.1" | ||
54 | Description="Microsoft .NET Framework 4.5.1 Setup" | ||
55 | CertificatePublicKey="A260A870BE1145ED71E2BB5AA19463A4FE9DCC41" | ||
56 | CertificateThumbprint="108E2BA23632620C427C570B6D9DB51AC31387FE" | ||
57 | Hash="4CBEA1E408DB5B423E130931B9478972E6798431" /> | ||
58 | </ExePackage> | ||
59 | </PackageGroup> | ||
60 | </Fragment> | ||
61 | |||
62 | <Fragment> | ||
63 | <util:RegistrySearchRef Id="NETFRAMEWORK45"/> | ||
64 | |||
65 | <WixVariable Id="NetFx451RedistDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx451MinRelease)" Overridable="yes" /> | ||
66 | <WixVariable Id="NetFx451RedistInstallCondition" Value="" Overridable="yes" /> | ||
67 | <WixVariable Id="NetFx451RedistPackageDirectory" Value="redist\" Overridable="yes" /> | ||
68 | |||
69 | <PackageGroup Id="NetFx451Redist"> | ||
70 | <ExePackage | ||
71 | InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx451FullLog].html"" | ||
72 | RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx451FullLog].html"" | ||
73 | UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx451FullLog].html"" | ||
74 | PerMachine="yes" | ||
75 | DetectCondition="!(wix.NetFx451RedistDetectCondition)" | ||
76 | InstallCondition="!(wix.NetFx451RedistInstallCondition)" | ||
77 | Id="NetFx451Redist" | ||
78 | Vital="yes" | ||
79 | Permanent="yes" | ||
80 | Protocol="netfx4" | ||
81 | DownloadUrl="$(var.NetFx451RedistLink)" | ||
82 | LogPathVariable="NetFx451FullLog" | ||
83 | Compressed="no" | ||
84 | Name="!(wix.NetFx451RedistPackageDirectory)NDP451-KB2858728-x86-x64-AllOS-ENU.exe"> | ||
85 | <RemotePayload | ||
86 | Size="70087104" | ||
87 | Version="4.5.50938.18408" | ||
88 | ProductName="Microsoft .NET Framework 4.5.1" | ||
89 | Description="Microsoft .NET Framework 4.5.1 Setup" | ||
90 | CertificatePublicKey="A260A870BE1145ED71E2BB5AA19463A4FE9DCC41" | ||
91 | CertificateThumbprint="108E2BA23632620C427C570B6D9DB51AC31387FE" | ||
92 | Hash="5934DD101414BBC0B7F1EE2780D2FC8B9BEC5C4D" /> | ||
93 | </ExePackage> | ||
94 | </PackageGroup> | ||
95 | </Fragment> | ||
96 | </Wix> | ||