; Installation inf for IE SmartReader PCSC Driver
;
; Copyright (c) 2004, 2005, 2006 Integrated Engineering, Amsterdam, The Netherlands
;

[Version]
Signature="$Windows NT$"
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
Provider=%IE%
DriverVer=11/13/2006,1.1.0.5


[SourceDisksNames]
1=%Distribution%,,, 

[SourceDisksFiles]
ie_pcsc.sys = 1
FTD2XX.sys  = 1
FTD2XX.dll = 1
FTDIUNIN.exe = 1
SmartIDCCID.inf = 1
SmartIDCCIDUN.INI = 1

[DestinationDirs]
DefaultDestDir   = 11
IEPCSC.Files.Sys = 12
IEPCSC.Files.Dll = 11
IEPCSC.Files.Exe = 11
IEPCSC.Files.Inf = 17

[ClassInstall32]
Addreg=SmartCardReaderClassReg

[ClassInstall]
Addreg=SmartCardReaderClassReg

[SmartCardReaderClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-25
HKR,,NoInstallClass,,1
HKR,,Installer32,,"winscard.dll,ClassInstall32"

[Manufacturer]
%IE%="IE"



; *****************************************************************************
;                     IE USB PCSC/CCID SmartReaders
; *****************************************************************************

[IE]
%IEPCSC.DeviceDesc% = IEPCSC.Install,USB\VID_0403&PID_FB19


; ============ Add reg for all readers ===============

[IEPCSC.Install.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,FTD2XX.sys
HKLM, Software\Microsoft\Cryptography\Calais\Readers,,,
HKLM, System\CurrentControlSet\Services\SCardSvr,Start,0x00010001,2
HKLM,"System\Currentcontrolset\Services\IEPCSC\Parameters","DebugLevel",0x00010001,0
HKLM,"System\Currentcontrolset\Services\FTD2XX\Parameters","MaximumTransferSize",0x00010001,4096
HKLM,"System\Currentcontrolset\Services\FTD2XX\Parameters","DebugLevel",0x00010001,2

[IEPCSC.Install.AddReg.HW]
HKR,,"VendorName",,"Integrated Engineering"
HKR,,"IfdType",,"USB Smartcard"
HKR,,"LowerFilters",0x00010000,"FTD2XX"

[IEPCSC.UnInstall.AddReg]
HKLM,%WINUN%,"IEPCSC"
HKLM,%WINUN%\IEPCSC , "UninstallString",,"%11%\FTDIUNIN.exe %11%\SmartIDCCIDUN.INI"
HKLM,%WINUN%\IEPCSC , "DisplayName",,"IE PCSC Drivers"


[DefaultInstall]
AddReg          = IEPCSC.Install.AddReg, IEPCSC.UnInstall.AddReg
CopyFiles       = IEPCSC.Files.Sys, IEPCSC.Files.Dll, IEPCSC.Files.Exe

[IEPCSC.Files.Sys]
ie_pcsc.sys
FTD2XX.sys

[IEPCSC.Files.Dll]
FTD2XX.dll

[IEPCSC.Files.Exe]
FTDIUNIN.exe 
SmartIDCCIDUN.INI


;---------------------------------------------------------------;
; For Win98 ...
;

[IEPCSC.Install]
AddReg          = IEPCSC.Install.AddReg, IEPCSC.UnInstall.AddReg
CopyFiles       = IEPCSC.Files.Sys, IEPCSC.Files.Dll, IEPCSC.Files.Exe, IEPCSC.Files.Inf



;---------------------------------------------------------------;
; For Win2000 ...
;

[IEPCSC.Install.NT]
AddReg          = IEPCSC.Install.AddReg, IEPCSC.UnInstall.AddReg
CopyFiles       = IEPCSC.Files.Sys, IEPCSC.Files.Dll, IEPCSC.Files.Exe

[IEPCSC.Install.NT.HW]
AddReg          = IEPCSC.Install.AddReg.HW


; ====================== Services ======================

[IEPCSC.Install.NT.Services]
AddService = IEPCSC, 2, IEPCSC.Service, IEPCSC.EventLog
AddService = FTD2XX,, FTD2XX.Service

[FTD2XX.Service]
DisplayName     = %FTD2XX.DeviceDesc%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_AUTO_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\FTD2XX.sys
LoadOrderGroup = PNP Filter

[IEPCSC.Service]
DisplayName     = %IEPCSC.DeviceDesc%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_AUTO_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\ie_pcsc.sys
LoadOrderGroup = Base

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

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


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

[Strings]
IE                      = "Integrated Engineering"
Distribution            = "IE SmartReader Drivers Disk"
ClassName               = "Smart card readers"
IEPCSC.DeviceDesc       = "SmartID/CCID Device"
FTD2XX.DeviceDesc     	= "USB FTDI driver"
WINUN					= "Software\Microsoft\Windows\CurrentVersion\Uninstall"


