﻿<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" Name="DisplayName" Culture="Culture" LicenseAgreement="eula.rtf">
  <!-- Defines list of files to be copied on build -->
  <PackageFiles CopyAllPackageFiles="false">
    <PackageFile Name="eula.rtf"/>
    <PackageFile Name="NDP481-x86-x64-AllOS-ESN.exe" HomeSite="DotNetFX481FullLanguagePackBootstrapper" PublicKey="0"/>
  </PackageFiles>
  <InstallChecks>
    <RegistryCheck Property="DotNetFullLangPack_Release" Key="HKLM\Software\Microsoft\NET Framework Setup\NDP\v4\Full\3082" Value="Release"/>
    <RegistryCheck Property="DotNetFullLangPack_OS_LCID" Key="HKLM\SYSTEM\CurrentControlSet\Control\MUI\UILanguages\es-ES" Value="LCID"/>
    <RegistryCheck Property="DotNetFullLangPack_OSIntegrated" Key="HKLM\SOFTWARE\Microsoft\NET Framework Setup\OS Integration" Value="v4"/>
  </InstallChecks>
  <!-- Defines how to invoke the setup for .NET Framework redist -->
  <Commands>
    <Command PackageFile="NDP481-x86-x64-AllOS-ESN.exe" Arguments=" /q /norestart /skipenucheck /ChainingPackage FullX64ClickOnce" EstimatedInstalledBytes="130718421" EstimatedTempBytes="77473415" EstimatedInstallSeconds="90">
      <!-- These checks determine whether the package is to be installed  in the cases where .NET is not integrated into the OS (MSI install)-->
      <InstallConditions>
        <!-- This indicates .NET Framework is already installed -->
        <BypassIf Property="DotNetFullLangPack_Release" Compare="ValueGreaterThanOrEqualTo" Value="533320"/>
        <!--  If netfx is part of the OS, then bypass this command.  --> 
        <BypassIf Property="DotNetFullLangPack_OSIntegrated" Compare="ValueEqualTo" Value="1"/> 
        <!-- Block install if user does not have admin privileges -->
        <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>
        <!-- Block install on less than Windows 7 RTM -->
        <FailIf Property="VersionNT" Compare="VersionLessThan" Value="6.1.0" String="InvalidPlatformWinNT"/>
        <!-- Block install if the platform is IA-64 -->
        <FailIf Property="ProcessorArchitecture" Compare="ValueEqualTo" Value="IA64" String="InvalidPlatformArchitecture"/>
      </InstallConditions>
      <ExitCodes>
        <ExitCode Value="0" Result="Success"/>
        <ExitCode Value="3010" Result="SuccessReboot"/>
        <DefaultExitCode Result="Success" FormatMessageFromSystem="false" String="GeneralFailure"/>
      </ExitCodes>
    </Command>
    <Command PackageFile="NDP481-x86-x64-AllOS-ESN.exe" Arguments=" /q /norestart /skipenucheck /ChainingPackage FullX64ClickOnce" EstimatedInstalledBytes="130718421" EstimatedTempBytes="77473415" EstimatedInstallSeconds="90">
      <!-- These checks determine whether the package is to be installed in the cases where .NET is integrated into the OS -->
      <InstallConditions>
        <!-- This indicates .NET Framework is already installed -->
        <BypassIf Property="DotNetFullLangPack_Release" Compare="ValueGreaterThanOrEqualTo" Value="533320"/>
        <!--  If netfx is not part of the OS, then bypass this command.  --> 
        <BypassIf Property="DotNetFullLangPack_OSIntegrated" Compare="ValueNotEqualTo" Value="1"/> 
        <BypassIf Property="DotNetFullLangPack_OSIntegrated" Compare="ValueNotExists" Value="1"/>
        <!-- Do not attempt to install on OS where NetFx is integrated in OS and MUI LCID doesn't match with this package. -->
        <BypassIf Property="DotNetFullLangPack_OS_LCID" Compare="ValueNotEqualTo" Value="3082"/>
        <!-- Block install if user does not have admin privileges -->
        <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>
        <!-- Block install on OS less than Windows 8.0 -->
        <FailIf Property="VersionNT" Compare="VersionLessThan" Value="6.2.0" String="InvalidPlatformWinNT"/>
        <!-- Block install if the platform is IA-64 -->
        <FailIf Property="ProcessorArchitecture" Compare="ValueEqualTo" Value="IA64" String="InvalidPlatformArchitecture"/>
      </InstallConditions>
      <ExitCodes>
        <ExitCode Value="0" Result="Success"/>
        <ExitCode Value="3010" Result="SuccessReboot"/>
        <DefaultExitCode Result="Success" FormatMessageFromSystem="false" String="GeneralFailure"/>
      </ExitCodes>
    </Command>
  </Commands>
  <!-- Defines a localizable string table for error messages-->
  <Strings>
    <String Name="DisplayName">Microsoft .NET Framework 4.8.1 (x86 y x64)</String>
    <String Name="Culture">es</String>
    <String Name="AdminRequired">Se requieren permisos de administrador para instalar Microsoft .NET Framework 4.8.1. Póngase en contacto con el administrador.</String>
    <String Name="InvalidPlatformWinNT">La instalación de Microsoft .NET Framework 4.8.1 no es compatible con este sistema operativo. Póngase en contacto con el proveedor de la aplicación.</String>
    <String Name="InvalidPlatformArchitecture">Esta versión de Microsoft .NET Framework 4.8.1 no es compatible con un sistema operativo IA-64. Póngase en contacto con el proveedor de la aplicación.</String>
    <String Name="DotNetFX481FullWebBootstrapper">http://go.microsoft.com/fwlink/?LinkId=2203304&amp;clcid=0xc0a</String>
    <String Name="DotNetFX481FullLanguagePackBootstrapper">http://go.microsoft.com/fwlink/?LinkId=2203215&amp;clcid=0xc0a</String>
    <String Name="GeneralFailure">Error al intentar instalar Microsoft .NET Framework 4.8.1.</String>
  </Strings>
</Package>
