; GTWinSER.inf
; Gemplus GTwinSER Smartcard interface installation
; Copyright (c) 2002 Gemplus
; INSTALL_TYPE = SERIAL

[Version]
Signature="$Windows NT$"
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
Provider="Gemplus"
CatalogFile=GTwinSER.cat
DriverVer=01/10/2003,1.0.2.2

[SourceDisksNames]
1=%Disk%,,,

[SourceDisksFiles]
GTwinSER.sys=1


[DestinationDirs]
DefaultDestDir = 11
GTWINSER.Install.CopyFiles = 12

[ControlFlags]
; Prevent legacy install for PnP readers
ExcludeFromSelect=*

[Manufacturer]
%GEMPLUS%=DeviceListMfg1,NTx86.5.1


[DeviceListMfg1.NTx86.5.1]
%GTWINSER.DeviceDesc% =   GTWINSER.InstallXP,   SERENUM\GEM3417

[DeviceListMfg1]
%GTWINSER.DeviceDesc% =   GTWINSER.Install,   SERENUM\GEM3417

;------------------------------------------------------------------------------
;WINDOWS XP and later, x86 only
;------------------------------------------------------------------------------
[GTWINSER.InstallXP]
AddReg          = GTWINSER.Install.AddReg
CopyFiles	= GTWINSER.Install.CopyFiles

[GTWINSER.InstallXP.Services]
AddService = GTWINSER, 2, GTWINSER.Service, GTWINSER.EventLog

[GTWINSER.InstallXP.hw]
AddReg=GTWINSER.Install.AddReg


;------------------------------------------------------------------------------
;WINDOWS 2000
;------------------------------------------------------------------------------

[GTWINSER.Install.NT]
AddReg          = GTWINSER.Install.AddReg,Reader.Install.AddReg
CopyFiles	= GTWINSER.Install.CopyFiles

[GTWINSER.Install.CopyFiles]
GTwinSER.sys,,,2

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

[GTWINSER.Service]
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_AUTO_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\GTwinSER.sys

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

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


[GTWINSER.Install.AddReg]
HKLM,System\CurrentControlSet\Services\SCardSvr,Start,0x00010001,2


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

[Reader.Install.AddReg]
; Required only on Win2000
HKLM, Software\Microsoft\Cryptography\Calais\Readers,,,
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,DLLName,0,wlnotify.dll
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Logon,0,SCardStartCertProp
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Logoff,0,SCardStopCertProp
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Lock,0,SCardSuspendCertProp
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Unlock,0,SCardResumeCertProp
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Enabled,0x00010001,1
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Impersonate,0x00010001,1
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Asynchronous,0x00010001,1


; ================= Strings =====================
[Strings]
GEMPLUS            = "Gemplus"
GTWINSER.DeviceDesc  = "Serial Smart Card Reader"
ClassName          = "Smart card readers"
Disk		   = "Installation Disk for SERIAL Smart Card Reader"
