Advertisement
Guest User

DotNetFramework.wxs

a guest
Nov 28th, 2019
1,287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.97 KB | None | 0 0
  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. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
  5.  
  6.   <!--
  7.      .NET Framework installation state properties
  8.      Official documentation can be found at the following location:
  9.      .NET Framework 4.5/4.5.1/4.5.2/4.6/4.6.1/4.6.2/4.7/4.7.1/4.8 - https://msdn.microsoft.com/en-us/library/w0x726c2(v=vs.110).aspx
  10.   -->
  11.  
  12.   <?define NetFx48MinRelease = 528040 ?>
  13.   <?define NetFx48WebLink = https://go.microsoft.com/fwlink/?LinkId=2085155 ?>
  14.   <?define NetFx48RedistLink = https://go.microsoft.com/fwlink/?linkid=2088631 ?>
  15.   <?define NetFx48EulaLink = https://referencesource.microsoft.com/license.html ?>
  16.  
  17.   <Fragment>
  18.     <PropertyRef Id="WIXNETFX4RELEASEINSTALLED" />
  19.     <Property Id="WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED" Secure="yes" />
  20.     <SetProperty Id="WIX_IS_NETFRAMEWORK_48_OR_LATER_INSTALLED" Value="1" After="AppSearch">
  21.       WIXNETFX4RELEASEINSTALLED >= "#$(var.NetFx48MinRelease)"
  22.     </SetProperty>
  23.   </Fragment>
  24.  
  25.   <Fragment>
  26.     <util:RegistrySearchRef Id="NETFRAMEWORK45"/>
  27.  
  28.     <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx48Web" />
  29.     <WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx48EulaLink)" Overridable="yes" />
  30.     <WixVariable Id="NetFx48WebDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx48MinRelease)" Overridable="yes" />
  31.     <WixVariable Id="NetFx48WebInstallCondition" Value="" Overridable="yes" />
  32.     <WixVariable Id="NetFx48WebPackageDirectory" Value="redist\" Overridable="yes" />
  33.  
  34.     <PackageGroup Id="NetFx48Web">
  35.       <ExePackage
  36.          InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
  37.          RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
  38.          UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
  39.          PerMachine="yes"
  40.          DetectCondition="!(wix.NetFx48WebDetectCondition)"
  41.          InstallCondition="!(wix.NetFx48WebInstallCondition)"
  42.          Id="NetFx48Web"
  43.          Vital="yes"
  44.          Permanent="yes"
  45.          Protocol="netfx4"
  46.          DownloadUrl="$(var.NetFx48WebLink)"
  47.          LogPathVariable="NetFx48FullLog"
  48.          Compressed="no"
  49.          Name="!(wix.NetFx48WebPackageDirectory)ndp48-web.exe">
  50.         <RemotePayload
  51.          CertificatePublicKey="D17AFCE951979605250FAEBAFA7AE974899AED22"
  52.          CertificateThumbprint="C82273A065EC470FB1EBDE846A91E6FFB29E9C12"
  53.          Description="Microsoft .NET Framework 4.8 Setup"
  54.          Hash="5A84A8E612E270E27D0061D58DB6B470153BE1F9"
  55.          ProductName="Microsoft .NET Framework 4.8"
  56.          Size="1479400"
  57.          Version="4.8.3928.0" />
  58.       </ExePackage>
  59.     </PackageGroup>
  60.   </Fragment>
  61.  
  62.   <Fragment>
  63.     <util:RegistrySearchRef Id="NETFRAMEWORK45"/>
  64.  
  65.     <WixVariable Id="WixMbaPrereqPackageId" Value="NetFx48Redist" />
  66.     <WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx48EulaLink)" Overridable="yes" />
  67.     <WixVariable Id="NetFx48RedistDetectCondition" Value="NETFRAMEWORK45 &gt;= $(var.NetFx48MinRelease)" Overridable="yes" />
  68.     <WixVariable Id="NetFx48RedistInstallCondition" Value="" Overridable="yes" />
  69.     <WixVariable Id="NetFx48RedistPackageDirectory" Value="redist\" Overridable="yes" />
  70.  
  71.     <PackageGroup Id="NetFx48Redist">
  72.       <ExePackage
  73.          InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
  74.          RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
  75.          UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx48FullLog].html&quot;"
  76.          PerMachine="yes"
  77.          DetectCondition="!(wix.NetFx48RedistDetectCondition)"
  78.          InstallCondition="!(wix.NetFx48RedistInstallCondition)"
  79.          Id="NetFx48Redist"
  80.          Vital="yes"
  81.          Permanent="yes"
  82.          Protocol="netfx4"
  83.          DownloadUrl="$(var.NetFx48RedistLink)"
  84.          LogPathVariable="NetFx48FullLog"
  85.          Compressed="no"
  86.          Name="!(wix.NetFx48RedistPackageDirectory)ndp48-x86-x64-allos-enu.exe">
  87.         <RemotePayload
  88.          CertificatePublicKey="D17AFCE951979605250FAEBAFA7AE974899AED22"
  89.          CertificateThumbprint="C82273A065EC470FB1EBDE846A91E6FFB29E9C12"
  90.          Description="Microsoft .NET Framework 4.8 Setup"
  91.          Hash="8DD233698D5EB4609B86C2AC917279FE39E0EF4C"
  92.          ProductName="Microsoft .NET Framework 4.8"
  93.          Size="117380440"
  94.          Version="4.8.3928.0" />
  95.       </ExePackage>
  96.     </PackageGroup>
  97.   </Fragment>
  98. </Wix>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement