; ACR1251.INF
; Copyright (c) 1994 - 2013 Advanced Card Systems Ltd.

[Version]
DriverVer=03/06/2013,1.0.0.1
Signature="$CHICAGO$"
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
Provider=%ACS%
CatalogFile=ACR1251.cat

; ======= Source and Destination section =============

[SourceDisksNames]
1 = %SourceDiskName%,,,

[SourceDisksFiles]
a1251.sys            = 1
a1251x64.sys         = 1
a1251w98.sys         = 1
a1251pcc.sys		 = 1
a1251sam.sys		 = 1
a1251pccx64.sys		 = 1
a1251samx64.sys	 	 = 1
a1251p98.sys         = 1
a1251s98.sys         = 1

[DestinationDirs]
ACS.Install1.CopySYS                 = 10,System32\Drivers
ACS.Install1.CopySYS.NTx86           = 12
ACS.Install1.CopySYS.NTamd64         = 12
ACS.Install2.CopySYS                 = 10,System32\Drivers
ACS.Install2.CopySYS.NTx86           = 12
ACS.Install2.CopySYS.NTamd64         = 12
ACS.Install3.CopySYS                 = 10,System32\Drivers
ACS.Install3.CopySYS.NTx86           = 12
ACS.Install3.CopySYS.NTamd64         = 12

[Manufacturer]
%ACS%=ACS,NTamd64

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

[ACS]
; DisplayName            Section      	    DeviceId
; -----------            -------      	    --------
%ACS.DeviceDesc1%  = ACS.Install1,      USB\VID_072F&PID_221A&MI_00   ;ACR1251 1S CL Reader PICC
%ACS.DeviceDesc2%  = ACS.Install2,      USB\VID_072F&PID_221A&MI_01   ;ACR1251 1S CL Reader SAM

%ACS.DeviceDesc3%  = ACS.Install3,      USB\VID_072F&PID_2229   	  ;ACR1251 CL Reader PICC


[ACS.NTamd64]
; DisplayName            Section      	    DeviceId
; -----------            -------      	    --------
%ACS.DeviceDesc1%  = ACS.Install1,      USB\VID_072F&PID_221A&MI_00   ;ACR1251 1S CL Reader PICC
%ACS.DeviceDesc2%  = ACS.Install2,      USB\VID_072F&PID_221A&MI_01   ;ACR1251 1S CL Reader SAM

%ACS.DeviceDesc3%  = ACS.Install3,      USB\VID_072F&PID_2229   	  ;ACR1251 CL Reader PICC


; ============== ACS ACR1251_PICC Driver ====================

[ACS.Install1]
AddReg             = ACS.Install1.AddReg
CopyFiles          = ACS.Install1.CopySYS

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

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

;-------- Windows 98/ME --------
[ACS.Install1.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,a1251pcc.sys
HKR,,AdapterType, 0, "0100"
HKR,,"VendorName",0,%Vendor%
HKR,,"IFDName",0,%IFDName1%
HKR,,"CardType",0,%CardType%
HKR,,"SFDT",0,%SFDT%
HKR,,"CardVoltage",0,%CardVoltage%

[ACS.Install1.CopySYS]
a1251pcc.sys,a1251p98.sys

[ACS.Install1.Services]
AddService = A1251PICC, 2, ACS.Install1.Service, ACS.Install1.EventLog

;-------- Windows 2k and Up --------

[ACS.Install1.AddReg.NT]
HKR,,AdapterType, 0, "0100"
HKR,,"VendorName",0,%Vendor%
HKR,,"IFDName",0,%IFDName1%
HKR,,"CardType",0,%CardType%
HKR,,"SFDT",0,%SFDT%
HKR,,"CardVoltage",0,%CardVoltage%
HKLM,"Software\Microsoft\Cryptography\Calais\Readers",,,
HKLM,"System\CurrentControlSet\Services\SCardSvr","Start", 0x00010001,2
HKLM,"System\CurrentControlSet\Services\CertPropSvc","Start", 0x00010001,2

[ACS.Install1.CopySYS.NTx86]
a1251pcc.sys

[ACS.Install1.CopySYS.NTamd64]
a1251pcc.sys,a1251pccx64.sys

[ACS.Install1.NTx86.Services]
AddService = A1251PICC, 2, ACS.Install1.Service, ACS.Install1.EventLog

[ACS.Install1.NTamd64.Services]
AddService = A1251PICC, 2, ACS.Install1.Service, ACS.Install1.EventLog

[ACS.Install1.Service]
DisplayName     = %ACS.DeviceDesc1%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\a1251pcc.sys

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

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


; ============== ACS ACR1251_SAM Driver ====================

[ACS.Install2]
AddReg             = ACS.Install2.AddReg
CopyFiles          = ACS.Install2.CopySYS

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

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

;-------- Windows 98/ME --------
[ACS.Install2.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,a1251sam.sys
HKR,,AdapterType, 0, "0100"
HKR,,"VendorName",0,%Vendor%
HKR,,"IFDName",0,%IFDName2%
HKR,,"CardType",0,%CardType%
HKR,,"SFDT",0,%SFDT%
HKR,,"CardVoltage",0,%CardVoltage%

[ACS.Install2.CopySYS]
a1251sam.sys,a1251s98.sys

[ACS.Install2.Services]
AddService = A1251SAM, 2, ACS.Install2.Service, ACS.Install2.EventLog

;-------- Windows 2k and Up --------

[ACS.Install2.AddReg.NT]
HKR,,AdapterType, 0, "0100"
HKR,,"VendorName",0,%Vendor%
HKR,,"IFDName",0,%IFDName2%
HKR,,"CardType",0,%CardType%
HKR,,"SFDT",0,%SFDT%
HKR,,"CardVoltage",0,%CardVoltage%
HKLM,"Software\Microsoft\Cryptography\Calais\Readers",,,
HKLM,"System\CurrentControlSet\Services\SCardSvr","Start", 0x00010001,2
HKLM,"System\CurrentControlSet\Services\CertPropSvc","Start", 0x00010001,2

[ACS.Install2.CopySYS.NTx86]
a1251sam.sys

[ACS.Install2.CopySYS.NTamd64]
a1251sam.sys,a1251samx64.sys

[ACS.Install2.NTx86.Services]
AddService = A1251SAM, 2, ACS.Install2.Service, ACS.Install2.EventLog

[ACS.Install2.NTamd64.Services]
AddService = A1251SAM, 2, ACS.Install2.Service, ACS.Install2.EventLog

[ACS.Install2.Service]
DisplayName     = %ACS.DeviceDesc2%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\a1251sam.sys

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

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

; ============== ACS ACR1251 Driver ====================

[ACS.Install3]
AddReg             = ACS.Install3.AddReg
CopyFiles          = ACS.Install3.CopySYS

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

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

;-------- Windows 98/ME --------
[ACS.Install3.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,a1251.sys
HKR,,AdapterType, 0, "0100"
HKR,,"VendorName",0,%Vendor%
HKR,,"IFDName",0,%IFDName3%
HKR,,"CardType",0,%CardType%
HKR,,"SFDT",0,%SFDT%
HKR,,"CardVoltage",0,%CardVoltage%

[ACS.Install3.CopySYS]
a1251.sys,a1251w98.sys

[ACS.Install3.Services]
AddService = A1251, 2, ACS.Install3.Service, ACS.Install3.EventLog

;-------- Windows 2k and Up --------

[ACS.Install3.AddReg.NT]
HKR,,AdapterType, 0, "0100"
HKR,,"VendorName",0,%Vendor%
HKR,,"IFDName",0,%IFDName3%
HKR,,"CardType",0,%CardType%
HKR,,"SFDT",0,%SFDT%
HKR,,"CardVoltage",0,%CardVoltage%
HKLM,"Software\Microsoft\Cryptography\Calais\Readers",,,
HKLM,"System\CurrentControlSet\Services\SCardSvr","Start", 0x00010001,2
HKLM,"System\CurrentControlSet\Services\CertPropSvc","Start", 0x00010001,2

[ACS.Install3.CopySYS.NTx86]
a1251.sys

[ACS.Install3.CopySYS.NTamd64]
a1251.sys,a1251x64.sys

[ACS.Install3.NTx86.Services]
AddService=A1251, 2, ACS.Install3.Service, ACS.Install3.EventLog

[ACS.Install3.NTamd64.Services]
AddService=A1251, 2, ACS.Install3.Service, ACS.Install3.EventLog

[ACS.Install3.Service]
DisplayName     = %ACS.DeviceDesc3%
ServiceType	    = 1
StartType	    = 3
ErrorControl	= 1
ServiceBinary	= %12%\a1251.sys

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

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

; ====================== Strings =========================

[Strings]
ACS                 	= "Advanced Card Systems Ltd."
Vendor              	= "ACS"
SourceDiskName		    = "ACR1251 USB Smart Card Reader Installation Disk"
ClassName 		        = "Smart Card Readers"
ACS.DeviceDesc1  	    = "ACR1251 1S CL Reader PICC"
ACS.DeviceDesc2  	    = "ACR1251 1S CL Reader SAM"
ACS.DeviceDesc3			= "ACR1251 CL Reader PICC"
IFDName1         	    = "ACR1251 1S CL Reader PICC"
IFDName2         	    = "ACR1251 1S CL Reader SAM"
IFDName3				= "ACR1251 CL Reader PICC"
CardType                = 0
SFDT                    = "TRUE"
CardVoltage             = 0


