﻿<?xml version="1.0" encoding="utf-8" ?>

<!-- Microsoft Data Access Components for English -->
<Package
  xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
  Name="DisplayName"
  Culture="Culture"
  LicenseAgreement="eula.txt"
>

    <PackageFiles CopyAllPackageFiles="false">
        <PackageFile Name="mdac_typ.exe" HomeSite="MDACTypExe" PublicKey="3082010A0282010100CF38F7E1A4275EF8F0CCAACEFB3ADE3B6231460546BBF5B6051AD3B3ACC29F0F4C670828C44310F53B75797F6A91F4D633C861BFFA9190007AF0791D5D6870F690B29877B5031D2F9B9D9B75892F4A01417C9E7CCB87439BF49674999E98C1CF40575816F6C0D59216E52485718F9949ED557C65C91F380023C53EAB11D6296CC69EA0705B7DD537D4677720C306CE85F84E3480A035C41C53320157EFB128BD6C01E3AD40BC80A90949DB36E337F41D49AA2AA76BD019D3CC8E9DD686467A134AD64519A553B3E2782F2E35976B4CC6E81AB0D3D1249069ABCEFC696E3E4CFB024162DC07985D7E5CA74C27316B564CE198D8E0D11D718D3D2AC07F714DFFCF0203010001"/>
        <PackageFile Name="eula.txt"/>
    </PackageFiles>

    <Commands Reboot="Defer">
        <Command PackageFile="mdac_typ.exe" 
             Arguments='/q:a /c:\"dasetup.exe /q /n\"' 
             EstimatedInstalledBytes="20000000" 
             EstimatedInstallSeconds="80">
            <!-- These checks determine whether the package is to be installed -->
            <InstallConditions>
                <BypassIf Property="MDACVersion" Compare="VersionGreaterThanOrEqualTo" Value="2.80"/>

                <!-- Block install if user does not have admin privileges -->
                <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>

                <!-- Block install on less than Windows NT 4 SP5 -->
                <FailIf Property="VersionNT" Compare="VersionLessThan" Value="4.0.5" String="InvalidPlatform"/>
            </InstallConditions>
            <ExitCodes>
                <ExitCode Value="0" Result="Success"/>
                <ExitCode Value="3010" Result="SuccessReboot"/>
                <ExitCode Value="112" Result="Fail" String="DiskFull"/>
                <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
            </ExitCodes>
        </Command>
    </Commands>

    <!-- Defines a localizable string table for error messages and url's  -->
    <Strings>
        <String Name="DisplayName">Microsoft Data Access Components 2.8</String>
        <String Name="Culture">en</String>
        <String Name="GeneralFailure">A failure occurred attempting to install Microsoft Data Access Components 2.8.</String>
        <String Name="AdminRequired">You do not have the permissions required to install Microsoft Data Access Components 2.8.  Contact your administrator.</String>
        <String Name="InvalidPlatform">Microsoft Data Access Components 2.8 is not supported on this platform.  Contact your application vendor.</String>
        <String Name="DiskFull">There is not enough disk space to complete setup.</String>
        <String Name="MDACTypExe">http://go.microsoft.com/fwlink/?LinkId=37282&amp;clcid=0x409</String>
    </Strings>

</Package>
