;
; ComyiKey.inf
;
; Comyi Key  Driver Installation File.
;
; (C) Copyright 2008-2010 Comyi Co.,Ltd.
;
;
[Version]
Signature  ="$WINDOWS NT$"
Provider   =%Comyi%
Class	   =SmartCardReader
ClassGuid  ={50dd5230-ba8a-11d1-bf5d-0000f805f530}

CatalogFile=ComyiKey.cat
DriverVer=02/27/2008,1.02.01.02

;
; Source Media 
;  
[SourceDisksNames]
1=%DiskName%,,,

[SourceDisksFiles]
Comyitoken.sys=1,,
Comyienum.sys=1,,
Comyikey.sys =1,,

[DestinationDirs]
DefaultDestDir   = 12
ComyiToken_Files = 12
ComyiEnum_Files  = 12
ComyiKey_Files   = 12

[ComyiToken_Files]
Comyitoken.sys,,,0x00000062

[ComyiEnum_Files]
Comyienum.sys,,,0x00000062

[ComyiKey_Files]
Comyikey.sys,,,0x00000062

;
; Manufacture
;
[Manufacturer]
%Comyi%=Comyi


;
; Models
;
[Comyi]
%PID_ENUM%        =ComyiEnum_Install,CyKey\CyKeyEnum
%PID_IFD%         =ComyiKey_Install, CyKeyEnum\CyKeyIFD
%PID_PRO_0901%  =ComyiToken_Install,USB\VID_163C&PID_5456
;
; Exclude selected models from display
;
[ControlFlags]
ExcludeFromSelect = *


;
; Blutronics Blutoken USB Driver Installation
;
[ComyiToken_Install.NTx86]
CopyFiles=ComyiToken_Files,ComyiEnum_Files,ComyiKey_Files
DriverVer=02/27/2008,1.02.01.02

[ComyiToken_Install.NTx86.Services]
AddService=CyToken,0x00000002,ComyiToken_AddService

[ComyiToken_AddService]
DisplayName    = %TOKEN_DISPNAME%
Description    = %TOKEN_SVCDESC%
ServiceType    = 1 ; SERVICE_KERNEL_DRIVER
StartType      = 3 ; SERVICE_DEMAND_START
ErrorControl   = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\Comyitoken.sys
LoadOrderGroup = Extended Base



;
; Comyi Enumerator Driver Installation
;
[ComyiEnum_Install.NTx86]
CopyFiles=ComyiEnum_Files,ComyiKey_Files,ComyiToken_Files
AddReg   =ComyiEnum_AddReg
DriverVer=02/27/2008,1.02.01.02

[ComyiEnum_Install.NTx86.Services]
AddService=CyKeyEnum,0x00000002,ComyiEnum_AddService

[ComyiEnum_AddService]
DisplayName    = %ENUM_DISPNAME%
Description    = %ENUM_SVCDESC%
ServiceType    = 1 ; SERVICE_KERNEL_DRIVER
StartType      = 3 ; SERVICE_DEMAND_START
ErrorControl   = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\Comyienum.sys
LoadOrderGroup = Extended Base

[ComyiEnum_AddReg]
; The number of virtual pc/sc smarcard reader
HKLM,SYSTEM\CurrentControlSet\Services\CyKeyEnum,NumberOfDevices, 0x10003,1


;
; Comyi USB Reader Driver Installation
;
[ComyiKey_Install.NTx86]
CopyFiles=ComyiEnum_Files,ComyiKey_Files,ComyiToken_Files
AddReg   =ComyiKey_AddReg
DriverVer=02/27/2008,1.02.01.02

[ComyiKey_Install.NTx86.Services]
AddService=CyKeyIFD, 0x00000002,ComyiKey_AddService,ComyiKey_EventLog

[ComyiKey_AddService]
DisplayName    = %IFD_DISPNAME%
Description    = %IFD_SVCDESC%
ServiceType    = 1 ; SERVICE_KERNEL_DRIVER
StartType      = 3 ; SERVICE_DEMAND_START
ErrorControl   = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\Comyikey.sys
LoadOrderGroup = Extended Base

[ComyiKey_EventLog]
AddReg = ComyiKey_EventLog_AddReg

[ComyiKey_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,%12%\Comyikey.sys
HKR,,TypesSupported,0x00010001,7

[ComyiKey_AddReg]
HKLM,SYSTEM\CurrentControlSet\Services\CyKeyIFD,EnablePCSC, 0x10003,1


; Default 
[Strings]
Comyi       	 = "Comyi Co.Ltd"
DiskName         = "Comyi SmartCard Key Installation Disk"
PID_ENUM 	 = "Comyi SmartCard Key Enumerator"
PID_IFD          = "Comyi SmartCard Key Reader"
PID_PRO_0901     = "Comyi SmartCard Key"

TOKEN_DISPNAME   = "Comyi SmartCard Key"
TOKEN_SVCDESC    = "Comyi SmartCard Key Service"

ENUM_DISPNAME 	 = "Comyi SmartCard USB Key Enumerator"
ENUM_SVCDESC 	 = "Comyi SmartCard USB Key Enumerator Service"
IFD_DISPNAME	 = "Comyi SmartCard USB Key USB Reader"
IFD_SVCDESC	 = "Comyi SmartCard USB Key USB Reader Service"

