aboutsummaryrefslogtreecommitdiff
path: root/src/wixlib/NetFx452.wxs
blob: 8dbdd9b33e671f85cdd14eb868ac1076ef22ebd7 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?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://wixtoolset.org/schemas/v4/wxs"
     xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"
     xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">

  <!--
        .NET Framework installation state properties

        Official documentation can be found at the following location:

           .NET Framework 4.5/4.5.1/4.5.2 - http://msdn.microsoft.com/en-us/library/w0x726c2(v=vs.110).aspx
    -->

  <?define NetFx452MinRelease = 379893 ?>
  <?define NetFx452WebLink = http://go.microsoft.com/fwlink/?LinkId=397707 ?>
  <?define NetFx452RedistLink = http://go.microsoft.com/fwlink/?LinkId=397708 ?>
  <?define NetFx452EulaLink = http://wixtoolset.org/licenses/netfx452 ?>
  <?define NetFx452WebId = NetFx452Web ?>
  <?define NetFx452RedistId = NetFx452Redist ?>

  <Fragment>
    <PropertyRef Id="WIXNETFX4RELEASEINSTALLED" />
    <Property Id="WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED" Secure="yes" />
    <SetProperty Id="WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED" Value="1" After="AppSearch" Condition="WIXNETFX4RELEASEINSTALLED &gt;= &quot;#$(var.NetFx452MinRelease)&quot;" />
  </Fragment>

  <Fragment>
    <util:RegistrySearchRef Id="NETFRAMEWORK45" />

    <WixVariable Id="NetFx452WebDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx452MinRelease)" Overridable="yes" />
    <WixVariable Id="NetFx452WebInstallCondition" Value="" Overridable="yes" />
    <WixVariable Id="NetFx452WebPackageDirectory" Value="redist\" Overridable="yes" />

    <PackageGroup Id="$(var.NetFx452WebId)">
      <ExePackage
          InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx452FullWebLog].html&quot;"
          RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx452FullWebLog].html&quot;"
          UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx452FullWebLog].html&quot;"
          PerMachine="yes"
          DetectCondition="!(wix.NetFx452WebDetectCondition)"
          InstallCondition="!(wix.NetFx452WebInstallCondition)"
          Id="$(var.NetFx452WebId)"
          Vital="yes"
          Permanent="yes"
          Protocol="netfx4"
          DownloadUrl="$(var.NetFx452WebLink)"
          LogPathVariable="NetFx452FullWebLog"
          Compressed="no"
          Name="!(wix.NetFx452WebPackageDirectory)NDP452-KB2901954-Web.exe">
        <RemotePayload CertificatePublicKey="B78FE7F6917E1BC5F4A9C77BA3D555A0E807B9E0"
                       CertificateThumbprint="67B1757863E3EFF760EA9EBB02849AF07D3A8080"
                       Description="Microsoft .NET Framework 4.5.2 Setup"
                       Hash="5B71B20A455F6EEAB79DD1EDCAB0BA66AD0D2208"
                       ProductName="Microsoft .NET Framework 4.5.2"
                       Size="1118920"
                       Version="4.5.51209.34209" />
      </ExePackage>
    </PackageGroup>
  </Fragment>

  <Fragment>
    <PackageGroup Id="$(var.NetFx452WebId)AsPrereq" />

    <bal:ManagedBootstrapperApplicationPrereqInformation PackageId="$(var.NetFx452WebId)" LicenseUrl="$(var.NetFx452EulaLink)" />
  </Fragment>

  <Fragment>
    <util:RegistrySearchRef Id="NETFRAMEWORK45" />

    <WixVariable Id="NetFx452RedistDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx452MinRelease)" Overridable="yes" />
    <WixVariable Id="NetFx452RedistInstallCondition" Value="" Overridable="yes" />
    <WixVariable Id="NetFx452RedistPackageDirectory" Value="redist\" Overridable="yes" />

    <PackageGroup Id="$(var.NetFx452RedistId)">
      <ExePackage
          InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx452FullLog].html&quot;"
          RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx452FullLog].html&quot;"
          UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx452FullLog].html&quot;"
          PerMachine="yes"
          DetectCondition="!(wix.NetFx452RedistDetectCondition)"
          InstallCondition="!(wix.NetFx452RedistInstallCondition)"
          Id="$(var.NetFx452RedistId)"
          Vital="yes"
          Permanent="yes"
          Protocol="netfx4"
          DownloadUrl="$(var.NetFx452RedistLink)"
          LogPathVariable="NetFx452FullLog"
          Compressed="no"
          Name="!(wix.NetFx452RedistPackageDirectory)NDP452-KB2901907-x86-x64-AllOS-ENU.exe">
        <RemotePayload 
          CertificatePublicKey="B78FE7F6917E1BC5F4A9C77BA3D555A0E807B9E0"
          CertificateThumbprint="67B1757863E3EFF760EA9EBB02849AF07D3A8080"
          Description="Microsoft .NET Framework 4.5.2 Setup"
          Hash="89F86F9522DC7A8A965FACCE839ABB790A285A63"
          ProductName="Microsoft .NET Framework 4.5.2"
          Size="69999448"
          Version="4.5.51209.34209" />
      </ExePackage>
    </PackageGroup>
  </Fragment>

  <Fragment>
    <PackageGroup Id="$(var.NetFx452RedistId)AsPrereq" />

    <bal:ManagedBootstrapperApplicationPrereqInformation PackageId="$(var.NetFx452RedistId)" LicenseUrl="$(var.NetFx452EulaLink)" />
  </Fragment>
</Wix>