forked from iterate-ch/cyberduck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNetFx47.wxs
68 lines (58 loc) · 3.52 KB
/
NetFx47.wxs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="utf-8"?>
<!-- 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. -->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<!--
.NET Framework installation state properties
Official documentation can be found at the following location:
.NET Framework 4.5/4.5.1/4.5.2/4.6/4.6.1/4.6.2/4.7 - http://msdn.microsoft.com/en-us/library/w0x726c2(v=vs.110).aspx
Update iterate:
Certificate Public Key, Certificate Thumbprint, Size and Hash do not match anymore, due to Microsoft switching Hashing from
SHA1 to SHA2, making this fragment invalid.
Refer: https://support.microsoft.com/en-us/topic/-net-framework-retiring-sha-1-content-9750f20d-a9ef-4d43-853f-2075f0a9d7da
-->
<?define NetFx47MinRelease = 460798 ?>
<?define NetFx472WebLink = http://go.microsoft.com/fwlink/?LinkId=863262 ?>
<?define NetFx472RedistLink = http://go.microsoft.com/fwlink/?LinkId=863265 ?>
<?define NetFx472EulaLink = http://referencesource.microsoft.com/license.html ?>
<Fragment>
<PropertyRef Id="WIXNETFX4RELEASEINSTALLED" />
<Property Id="WIX_IS_NETFRAMEWORK_47_OR_LATER_INSTALLED" Secure="yes" />
<SetProperty Id="WIX_IS_NETFRAMEWORK_47_OR_LATER_INSTALLED" Value="1" After="AppSearch">
WIXNETFX4RELEASEINSTALLED >= "#$(var.NetFx47MinRelease)"
</SetProperty>
</Fragment>
<Fragment>
<util:RegistrySearchRef Id="NETFRAMEWORK45" />
<WixVariable Id="WixMbaPrereqPackageId" Value="NetFx472Web" />
<WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx472EulaLink)" Overridable="yes" />
<WixVariable Id="NetFx472WebDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx47MinRelease)" Overridable="yes" />
<WixVariable Id="NetFx472WebInstallCondition" Value="" Overridable="yes" />
<WixVariable Id="NetFx472WebPackageDirectory" Value="redist\" Overridable="yes" />
<PackageGroup Id="NetFx472Web">
<ExePackage
InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx472FullLog].html""
RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx472FullLog].html""
UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx472FullLog].html""
PerMachine="yes"
DetectCondition="!(wix.NetFx472WebDetectCondition)"
InstallCondition="!(wix.NetFx472WebInstallCondition)"
Id="NetFx472Web"
Vital="yes"
Permanent="yes"
Protocol="netfx4"
DownloadUrl="$(var.NetFx472WebLink)"
LogPathVariable="NetFx472FullLog"
Compressed="no"
Name="!(wix.NetFx472WebPackageDirectory)NDP472-KB4054531-Web.exe">
<RemotePayload
CertificatePublicKey="F49F9B33E25E33CCA0BFB15A62B7C29FFAB3880B"
CertificateThumbprint="ABDCA79AF9DD48A0EA702AD45260B3C03093FB4B"
Description="Microsoft .NET Framework 4.7.2 Setup"
Hash="0E1EC7C7E9E2C7678DB5548DE80FC5C57F97DDE2"
ProductName="Microsoft .NET Framework 4.7.2"
Size="1405792"
Version="4.7.3081.0" />
</ExePackage>
</PackageGroup>
</Fragment>
</Wix>