diff options
Diffstat (limited to 'src/wixlib/NetFx452.wxs')
-rw-r--r-- | src/wixlib/NetFx452.wxs | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/src/wixlib/NetFx452.wxs b/src/wixlib/NetFx452.wxs new file mode 100644 index 00000000..16c55aac --- /dev/null +++ b/src/wixlib/NetFx452.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 | |||
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 - http://msdn.microsoft.com/en-us/library/w0x726c2(v=vs.110).aspx | ||
13 | --> | ||
14 | |||
15 | <?define NetFx452MinRelease = 379893 ?> | ||
16 | <?define NetFx452WebLink = http://go.microsoft.com/fwlink/?LinkId=397707 ?> | ||
17 | <?define NetFx452RedistLink = http://go.microsoft.com/fwlink/?LinkId=397708 ?> | ||
18 | |||
19 | <Fragment> | ||
20 | <PropertyRef Id="WIXNETFX4RELEASEINSTALLED" /> | ||
21 | <Property Id="WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED" Secure="yes" /> | ||
22 | <SetProperty Id="WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED" Value="1" After="AppSearch"> | ||
23 | WIXNETFX4RELEASEINSTALLED >= "#$(var.NetFx452MinRelease)" | ||
24 | </SetProperty> | ||
25 | </Fragment> | ||
26 | |||
27 | <Fragment> | ||
28 | <util:RegistrySearchRef Id="NETFRAMEWORK45"/> | ||
29 | |||
30 | <WixVariable Id="NetFx452WebDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx452MinRelease)" Overridable="yes" /> | ||
31 | <WixVariable Id="NetFx452WebInstallCondition" Value="" Overridable="yes" /> | ||
32 | <WixVariable Id="NetFx452WebPackageDirectory" Value="redist\" Overridable="yes" /> | ||
33 | |||
34 | <PackageGroup Id="NetFx452Web"> | ||
35 | <ExePackage | ||
36 | InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx452FullWebLog].html"" | ||
37 | RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx452FullWebLog].html"" | ||
38 | UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx452FullWebLog].html"" | ||
39 | PerMachine="yes" | ||
40 | DetectCondition="!(wix.NetFx452WebDetectCondition)" | ||
41 | InstallCondition="!(wix.NetFx452WebInstallCondition)" | ||
42 | Id="NetFx452Web" | ||
43 | Vital="yes" | ||
44 | Permanent="yes" | ||
45 | Protocol="netfx4" | ||
46 | DownloadUrl="$(var.NetFx452WebLink)" | ||
47 | LogPathVariable="NetFx452FullWebLog" | ||
48 | Compressed="no" | ||
49 | Name="!(wix.NetFx452WebPackageDirectory)NDP452-KB2901954-Web.exe"> | ||
50 | <RemotePayload CertificatePublicKey="B78FE7F6917E1BC5F4A9C77BA3D555A0E807B9E0" | ||
51 | CertificateThumbprint="67B1757863E3EFF760EA9EBB02849AF07D3A8080" | ||
52 | Description="Microsoft .NET Framework 4.5.2 Setup" | ||
53 | Hash="5B71B20A455F6EEAB79DD1EDCAB0BA66AD0D2208" | ||
54 | ProductName="Microsoft .NET Framework 4.5.2" | ||
55 | Size="1118920" | ||
56 | Version="4.5.51209.34209" /> | ||
57 | </ExePackage> | ||
58 | </PackageGroup> | ||
59 | </Fragment> | ||
60 | |||
61 | <Fragment> | ||
62 | <util:RegistrySearchRef Id="NETFRAMEWORK45"/> | ||
63 | |||
64 | <WixVariable Id="NetFx452RedistDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx452MinRelease)" Overridable="yes" /> | ||
65 | <WixVariable Id="NetFx452RedistInstallCondition" Value="" Overridable="yes" /> | ||
66 | <WixVariable Id="NetFx452RedistPackageDirectory" Value="redist\" Overridable="yes" /> | ||
67 | |||
68 | <PackageGroup Id="NetFx452Redist"> | ||
69 | <ExePackage | ||
70 | InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx452FullLog].html"" | ||
71 | RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx452FullLog].html"" | ||
72 | UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx452FullLog].html"" | ||
73 | PerMachine="yes" | ||
74 | DetectCondition="!(wix.NetFx452RedistDetectCondition)" | ||
75 | InstallCondition="!(wix.NetFx452RedistInstallCondition)" | ||
76 | Id="NetFx452Redist" | ||
77 | Vital="yes" | ||
78 | Permanent="yes" | ||
79 | Protocol="netfx4" | ||
80 | DownloadUrl="$(var.NetFx452RedistLink)" | ||
81 | LogPathVariable="NetFx452FullLog" | ||
82 | Compressed="no" | ||
83 | Name="!(wix.NetFx452RedistPackageDirectory)NDP452-KB2901907-x86-x64-AllOS-ENU.exe"> | ||
84 | <RemotePayload | ||
85 | CertificatePublicKey="B78FE7F6917E1BC5F4A9C77BA3D555A0E807B9E0" | ||
86 | CertificateThumbprint="67B1757863E3EFF760EA9EBB02849AF07D3A8080" | ||
87 | Description="Microsoft .NET Framework 4.5.2 Setup" | ||
88 | Hash="89F86F9522DC7A8A965FACCE839ABB790A285A63" | ||
89 | ProductName="Microsoft .NET Framework 4.5.2" | ||
90 | Size="69999448" | ||
91 | Version="4.5.51209.34209" /> | ||
92 | </ExePackage> | ||
93 | </PackageGroup> | ||
94 | </Fragment> | ||
95 | </Wix> | ||