; ACR1251U-A2.INF
; Copyright (c) 2017 Advanced Card Systems Ltd.
; 
; USB Smart Card Driver for ACR1251 PCSC/CCID reader

[Version]
DriverVer=04/05/2017,2.1.0.0
Signature="$Windows NT$"
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
Provider=%ACS%
DriverPackageType=PlugAndPlay
DriverPackageDisplayName=%DriverDisplayName%
CatalogFile.NT=acr1251u-a2.cat

[SourceDisksNames]
1 = %SourceDiskName%,,,""

[SourceDisksFiles]
a1251a2.sys    = 1
a1251a2x64.sys = 1

[DestinationDirs]
ACS.Install.CopySYS.NTx86 = 12
ACS.Install.CopySYS.NTamd64 = 12

[Manufacturer]
%ACS%=ACS,NTamd64

; ================= ACS ACR1251 Reader =====================

[ACS]
; DisplayName       Section     DeviceId
; -----------       -------     --------
%ACS.DeviceDesc% = ACS.Install, USB\VID_072F&PID_222D	;ACR1251 Smart Card Reader 

[ACS.NTamd64]
; DisplayName       Section     DeviceId
; -----------       -------     --------
%ACS.DeviceDesc% = ACS.Install, USB\VID_072F&PID_222D	;ACR1251 Smart Card Reader

[ACS.Install.NTx86]
AddReg = ACS.Install.AddReg.NT
CopyFiles	= ACS.Install.CopySYS.NTx86

[ACS.Install.NTamd64]
AddReg = ACS.Install.AddReg.NT
CopyFiles	= ACS.Install.CopySYS.NTamd64

; ========================= ACS ACR1251 Reader =================================

[ACS.Install.AddReg.NT]
HKR,,AdapterType, 0, "0100"
HKR,,"VendorName",0,%Vendor%
HKR,,"IFDName",0,%Reader%
HKR,,"CardType",0,%CardType%
HKR,,"SFDT",0,%SFDT%
HKR,,"CardVoltage",0,%CardVoltage%   
HKR,,"ACSCustomFlags",0x00010000,"0001","0005","0006"
HKLM,"Software\Microsoft\Cryptography\Calais\Readers",,,
HKLM,"System\CurrentControlSet\Services\SCardSvr","Start", 0x00010001,2
HKLM,"System\CurrentControlSet\Services\CertPropSvc","Start", 0x00010001,2

[ACS.Install.CopySYS.NTx86]
a1251a2.sys

[ACS.Install.CopySYS.NTamd64]
a1251a2.sys,a1251a2x64.sys

[ACS.Install.NTx86.Services]
AddService = ACR1251A2, 2, ACS.Service, ACS.EventLog

[ACS.Install.NTamd64.Services]
AddService = ACR1251A2, 2, ACS.Service, ACS.EventLog

[ACS.Service]
DisplayName = %ACS.DeviceDesc%
ServiceType = 1 ;%SERVICE_KERNEL_DRIVER%
StartType = 3 ;%SERVICE_DEMAND_START%
ErrorControl = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\a1251a2.sys

[ACS.EventLog]
AddReg = ACS.AddEventLog.reg

[ACS.AddEventLog.reg]
HKR,, EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\drivers\a1251a2.sys"
HKR,, TypesSupported,   0x00010001, 7

; ========================= ACS ACR1251 Reader =================================

[Strings]
SourceDiskName = "ACR1251 Driver Installation Disk"
Msft = "Advanced Card Systems Ltd."
ACS = "ACS"
ACS.DeviceDesc = "ACR1251 Smart Card Reader"
ClassName = "Smart Card Readers"
Vendor = "ACS"
Reader = "ACR122"
CardType = 0
SFDT = "TRUE"
CardVoltage = 0
DriverDisplayName = "ACR1251 PC/SC Driver"