; Alcorscd.inf
; version 1.15
; Copyright (c) 2002-2003 Alcor

[Version]
Signature="$CHICAGO$"
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
provider=%MFGNAME%
;CatalogFile=Alcorscd.cat
DriverVer=10/11/2001,1.0.1.2

[ControlFlags]
Excludefromselect=USB\VID_058F&PID_9510,USB\VID_058F&PID_2412,USB\VID_07E4&PID_0968&MI_00,USB\VID_07E4&PID_0967,USB\VID_08F2&PID_007F&MI_00


[Manufacturer]
%MFGNAME%=DeviceList

[DestinationDirs]
DriverInf=17
DriverCopyFiles=10,System32\Drivers
SMCLIB.CopyFiles=10,System32\Drivers
DefaultDestDir=10,System32\Drivers

[SourceDisksFiles]
Alcorscd.sys=1
;Alcorscd.cat=1
Alcorscd.inf=1
smclib.sys

[SourceDisksNames]
1=%INSTDISK%,,,

[DeviceList]
%USB\VID_058F&PID_9510.DeviceDesc%=DriverInstall,USB\VID_058F&PID_9510,USB\VID_058F&PID_2412,USB\VID_07E4&PID_0968&MI_00,USB\VID_07E4&PID_0967,USB\VID_08F2&PID_007F&MI_00


[Install_Certificate]
addcert.exe Dekart_Authority.cer ROOT

[BeginPromptSection]
Prompt="%BeginPrompt%"
ButtonType=YESNO
Title=%App_Name%

[EndPromptSection]
Prompt="%EndPrompt%"

[RegAdd]
HKLM,%SMWCV%\Uninstall\%Soft_Name%,DisplayName,,"%Ctrl_Soft_Name%"
HKLM,%SMWCV%\Uninstall\%Soft_Name%,UninstallString,,"RunDll32 advpack.dll,LaunchINFSection %17%\alcorscd.inf, DriverUninstall"

[RegAdd.NT]
HKLM,%SMWCV%\Uninstall\%Soft_Name%,DisplayName,,"%Ctrl_Soft_Name%"
HKLM,%SMWCV%\Uninstall\%Soft_Name%,UninstallString,,"RunDll32 advpack.dll,LaunchINFSection %17%\alcorscd.inf, DriverUninstall.NT"

[RegRemove]
HKLM,%SMWCV%\Uninstall\%Soft_Name%

;------------------------------------------------------------------------------
;  Windows 2000 / WINDOWS XP Installation
;------------------------------------------------------------------------------

[DriverInstall.NT]
AddReg=RegAdd
CopyFiles=DriverCopyFiles,DriverInf

[DriverInf]
Alcorscd.inf

[DriverCopyFiles]
Alcorscd.sys,,,2

[DriverInstall.NT.Services]
Addservice=Alcorscd, 2, DriverService,EventLogging

[DriverService]
ServiceType=1                  ; SERVICE_KERNEL_DRIVER
StartType=3                  ; SERVICE_AUTO_START
ErrorControl=1                  ; SERVICE_ERROR_NORMAL
ServiceBinary=%10%\System32\Drivers\Alcorscd.sys

[EventLogging]
AddReg=EventLogAddReg

[EventLogAddReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\system32\drivers\Alcorscd.sys"
HKR,,TypesSupported,0x00010001,7

[DriverInstall.nt.hw]
AddReg=DriverHwAddReg

[DriverHwAddReg]
;HKR,,Parameters,,"MaximumTransferSize",0x10001,4096
;HKR,,Parameters,,"DebugLevel",0x10001,2
[DriverUninstall.NT]
BeginPrompt=BeginPromptSection
EndPrompt=EndPromptSection
DelFiles=DriverCopyFiles
DelReg=RegRemove

;------------------------------------------------------------------------------
;  Windows 98 Installation
;------------------------------------------------------------------------------
[DriverInstall]
AddReg=DriverAddReg,SMCLIB.AddReg,RegAdd
CopyFiles=DriverCopyFiles,SMCLIB.CopyFiles

[SMCLIB.CopyFiles]
smclib.sys

[DriverAddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,Alcorscd.sys

[DriverInstall.hw]
AddReg=DriverHwAddReg

[SMCLIB.AddReg]
HKR,,DevLoader,,*NTKERN

[DriverUninstall]
BeginPrompt=BeginPromptSection
EndPrompt=EndPromptSection
DelFiles=DriverCopyFiles
DelReg=RegRemove

;------------------------------------------------------------------------------
;  String Definitions
;------------------------------------------------------------------------------

[Strings]
MFGNAME="Alcor Micro"
USB\VID_058F&PID_9510.DeviceDesc="Alcor PC/SC USB Smart Card Reader"
INSTDISK="Installation Disc for Dekart SIM Reader"
SMWCV	= "Software\Microsoft\Windows\CurrentVersion"

Provider="Dekart"
Soft_Name="Dekart SIM Reader"
Ctrl_Soft_Name="Dekart SIM Reader 1.00"
Reg_Soft_Name="SIM Reader"
App_Name="Dekart SIM Reader 1.00"
BeginPrompt="Are you sure that you want to remove Dekart SIM Reader 1.00? Please close it before proceeding."
EndPrompt="Dekart SIM Reader 1.00 was successfully removed."

[Dekart_Install_INI] 
driver_install=1
license_form=1
reboot=1
comp_logo=comp.bmp
image=logo.bmp
inf1=alcorscd.inf
