aboutsummaryrefslogtreecommitdiff
path: root/src/ext/NetFx/wixlib/NetFx481.wxs
blob: b0da8bb0d3005bc767a762b90a4b5007b53f1135 (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
110
111
<!-- 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 locations:
      https://learn.microsoft.com/en-us/dotnet/framework/install/guide-for-developers
      https://learn.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed
  -->

  <?define NetFx481MinRelease = 533320 ?>
  <?define NetFx481WebLink = https://go.microsoft.com/fwlink/?LinkId=2203304 ?>
  <?define NetFx481RedistLink = https://go.microsoft.com/fwlink/?linkid=2203305 ?>
  <?define NetFx481EulaLink = https://referencesource.microsoft.com/license.html ?>
  <?define NetFx481WebId = NetFx481Web ?>
  <?define NetFx481RedistId = NetFx481Redist ?>

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

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

    <WixVariable Id="NetFx481WebDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx481MinRelease)" Overridable="yes" />
    <WixVariable Id="NetFx481WebInstallCondition" Value="" Overridable="yes" />
    <WixVariable Id="NetFx481WebPackageDirectory" Value="redist\" Overridable="yes" />

    <PackageGroup Id="$(var.NetFx481WebId)">
      <ExePackage
        CacheId="$(var.NetFx481WebId)_AFBF0B8B6A18F7E23CCA1DDCD0AC1A55B4035173"
        InstallArguments="/q /norestart /log &quot;[NetFx481WebLog].html&quot;"
        PerMachine="yes"
        DetectCondition="!(wix.NetFx481WebDetectCondition)"
        InstallCondition="!(wix.NetFx481WebInstallCondition)"
        Id="$(var.NetFx481WebId)"
        Vital="yes"
        Permanent="yes"
        Protocol="netfx4"
        LogPathVariable="NetFx481WebLog"
        Cache="remove">

        <ExePackagePayload
          Name="!(wix.NetFx481WebPackageDirectory)ndp481-web.exe"
          DownloadUrl="$(var.NetFx481WebLink)"
          ProductName="Microsoft .NET Framework 4.8.1"
          Description="Microsoft .NET Framework 4.8.1 Setup"
          CertificatePublicKey="0A7D1EFF01D4EBAD21E85C51499576EBAA40E676"
          CertificateThumbprint="AFBF0B8B6A18F7E23CCA1DDCD0AC1A55B4035173"
          Size="1460448"
          Version="4.8.09037.06"
        />
      </ExePackage>
    </PackageGroup>
  </Fragment>

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

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

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

    <WixVariable Id="NetFx481RedistDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx481MinRelease)" Overridable="yes" />
    <WixVariable Id="NetFx481RedistInstallCondition" Value="" Overridable="yes" />
    <WixVariable Id="NetFx481RedistPackageDirectory" Value="redist\" Overridable="yes" />

    <PackageGroup Id="$(var.NetFx481RedistId)">
      <ExePackage 
        CacheId="$(var.NetFx481RedistId)_AFBF0B8B6A18F7E23CCA1DDCD0AC1A55B4035173" 
        InstallArguments="/q /norestart /log &quot;[NetFx481RedistLog].html&quot;" 
        PerMachine="yes" 
        DetectCondition="!(wix.NetFx481RedistDetectCondition)" 
        InstallCondition="!(wix.NetFx481RedistInstallCondition)" 
        Id="$(var.NetFx481RedistId)" 
        Vital="yes" 
        Permanent="yes" 
        Protocol="netfx4" 
        LogPathVariable="NetFx481RedistLog" 
        Cache="remove">

        <ExePackagePayload 
          Name="!(wix.NetFx481RedistPackageDirectory)ndp481-x86-x64-allos-enu.exe" 
          DownloadUrl="$(var.NetFx481RedistLink)" 
          ProductName="Microsoft .NET Framework 4.8.1" 
          Description="Microsoft .NET Framework 4.8.1 Setup" 
          CertificatePublicKey="0A7D1EFF01D4EBAD21E85C51499576EBAA40E676" 
          CertificateThumbprint="AFBF0B8B6A18F7E23CCA1DDCD0AC1A55B4035173" 
          Size="63610344" 
          Version="4.8.09037.06" 
          />
      </ExePackage>
    </PackageGroup>
  </Fragment>

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

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