;
; Gemalto Classic MDE Smartcard Minidriver for an x86 based package;

[Version]
Signature="$Windows NT$"
Class=SmartCard
ClassGuid={990A2BD7-E738-46c7-B26F-1CF8FB9F1391}
Provider=%GEMALTO%
CatalogFile= GemSafeCM.cat
DriverVer= 11/21/2007,1.1.3.0

[DefaultInstall]
CopyFiles=System32_CopyFiles
AddReg=MiniDriver_AddReg

[Manufacturer]
%GEMALTO%=Gemalto,NTx86,NTx86.6.1

[Gemalto.NTx86]
%ScMSCardDeviceName%=ScMSCard_Install,SCFILTER\CID_80318065B0931140C883009000

[Gemalto.NTx86.6.1]
%ScMSCardDeviceName%=ScMSCard61_Install,SCFILTER\CID_80318065B0931140C883009000

[SourceDisksFiles]
GemSafeCM.dll=1

[SourceDisksNames]
1 = %MediaDescription%

[ScMSCard_Install.NT]
CopyFiles=System32_CopyFiles
AddReg=MiniDriver_AddReg

[ScMSCard61_Install.NT]
CopyFiles=System32_CopyFiles
AddReg=MiniDriver_AddReg

[SCMSCard61_Install.NT.Services]
AddService = UMPass, 0x00000002, UMPassService_Install

[UMPassService_Install]
DisplayName    = %umpass.SVCDESC%     ; Friendly Name of the Service
ServiceType    = 1                    ; SERVICE_KERNEL_DRIVER
StartType      = 3                    ; SERVICE_DEMAND_START 
ErrorControl   = 1                    ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\umpass.sys
LoadOrderGroup = Extended Base

[System32_CopyFiles]
GemSafeCM.dll

[MiniDriver_AddReg]
HKLM, %SmartCardName%,"ATR",0x00000001, 3b,7d,00,00,00,80,31,80,65,b0,93,00,00,00,83,00,90,00
HKLM, %SmartCardName%,"ATRMask",0x00000001, ff,ff,00,ff,ff,ff,ff,ff,ff,ff,ff,00,00,00,ff,ff,ff,ff
HKLM, %SmartCardName%,"Crypto Provider",0x00000000,"Microsoft Base Smart Card Crypto Provider"
HKLM, %SmartCardName%,"Smart Card Key Storage Provider",0x00000000,"Microsoft Smart Card Key Storage Provider"
HKLM, %SmartCardName%,"80000001",0x00000000,%SmartCardCardModule%

[DestinationDirs]
System32_CopyFiles=10,system32

[FriendlyName]
ScFriendlyName="Gemalto Classic MDE Smart Card"

; =================== Generic ==================================

[Strings]
GEMALTO ="Gemalto"
MediaDescription="Gemalto Smart Card Minidriver Installation Disk"
SCMSCardDeviceName="Gemalto Minidriver for Classic MDE Smart Card"
SmartCardName="SOFTWARE\Microsoft\Cryptography\Calais\SmartCards\Gemalto Classic MDE"
SmartCardCardModule="GemSafeCM.dll"
umpass.SVCDESC = "Microsoft UMPass Driver"
