;
;Copyright (c) Athena Smartcard Solutions.  All rights reserved.
;

[Version]
Signature="$Windows NT$"
Class=SmartCard
ClassGuid={990A2BD7-E738-46c7-B26F-1CF8FB9F1391}
Provider=%VendorName%
CatalogFile=asemd.cat
DriverVer=01/07/2014,6.1.3.5

[Manufacturer]
%VendorName%=Athena,NTamd64,NTamd64.6.1,NTx86,NTx86.6.1

[Athena.NTamd64]
%ASECardDeviceName%=Athena64_Install,SCFILTER\CID_805100611030

[Athena.NTx86]
%ASECardDeviceName%=Athena32_Install,SCFILTER\CID_805100611030

[Athena.NTamd64.6.1]
%ASECardDeviceName%=Athena64_61_Install,SCFILTER\CID_805100611030

[Athena.NTx86.6.1]
%ASECardDeviceName%=Athena32_61_Install,SCFILTER\CID_805100611030

[DefaultInstall]
CopyFiles=x86_CopyFiles
AddReg=AddRegDefault

[DefaultInstall.ntamd64]
CopyFiles=amd64_CopyFiles
CopyFiles=wow64_CopyFiles
AddReg=AddRegWOW64
AddReg=AddRegDefault

[DefaultInstall.NTx86]
CopyFiles=x86_CopyFiles
AddReg=AddRegDefault

[SourceDisksFiles]
asemd64.dll=1
asemd.dll=1

[SourceDisksNames]
1 = %MediaDescription%

[Athena64_Install.NT]
CopyFiles=amd64_CopyFiles
CopyFiles=wow64_CopyFiles
AddReg=AddRegWOW64
AddReg=AddRegDefault

[Athena64_61_Install.NT]
CopyFiles=amd64_CopyFiles
CopyFiles=wow64_CopyFiles
AddReg=AddRegWOW64
AddReg=AddRegDefault
Include=umpass.inf
Needs=UmPass
AddService=AddService

[Athena32_Install.NT]
CopyFiles=x86_CopyFiles
AddReg=AddRegDefault

[Athena32_61_Install.NT]
CopyFiles=x86_CopyFiles
AddReg=AddRegDefault
Include=umpass.inf
Needs=UmPass
AddService=AddService

[Athena64_61_Install.NT.Services]
Include=umpass.inf
Needs=UmPass.Services
AddService = UMPass, 0x00000002, UMPassService_Install

[Athena32_61_Install.NT.Services]
Include=umpass.inf
Needs=UmPass.Services
AddService = UMPass, 0x00000002, UMPassService_Install

[Athena64_Install.NT.Services]
Include=umpass.inf
Needs=UmPass.Services
AddService = UMPass, 0x00000002, UMPassService_Install

[Athena32_Install.NT.Services]
Include=umpass.inf
Needs=UmPass.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


[Athena64_61_Install.NT.HW]
Include=umpass.inf
Needs=UmPass.HW

[Athena64_61_Install.NT.CoInstallers]
Include=umpass.inf
Needs=UmPass.CoInstallers


[Athena64_61_Install.NT.Interfaces]
Include=umpass.inf
Needs=UmPass.Interfaces


[Athena32_61_Install.NT.HW]
Include=umpass.inf
Needs=UmPass.HW

[Athena32_61_Install.NT.CoInstallers]
Include=umpass.inf
Needs=UmPass.CoInstallers


[Athena32_61_Install.NT.Interfaces]
Include=umpass.inf
Needs=UmPass.Interfaces


[amd64_CopyFiles]
asemd.dll,asemd64.dll

[x86_CopyFiles]
asemd.dll

[wow64_CopyFiles]
asemd.dll

[AddRegWOW64]
HKLM, %SmartCardNameWOW64%,"ATR",0x00000001,3b,d6,00,00,81,b1,80,00,1f,00,80,51,00,61,00,30,00
HKLM, %SmartCardNameWOW64%,"ATRMask",0x00000001,ff,ff,00,00,ff,ff,ff,00,ff,00,ff,ff,ff,ff,00,ff,00
HKLM, %SmartCardNameWOW64%,"Crypto Provider",0x00000000,"Microsoft Base Smart Card Crypto Provider"
HKLM, %SmartCardNameWOW64%,"Smart Card Key Storage Provider",0x00000000,"Microsoft Smart Card Key Storage Provider"
HKLM, %SmartCardNameWOW64%,"80000001",0x00000000,%SmartCardCardModule%

[AddRegDefault]
HKLM, %SmartCardName%,"ATR",0x00000001,3b,d6,00,00,81,b1,80,00,1f,00,80,51,00,61,00,30,00
HKLM, %SmartCardName%,"ATRMask",0x00000001,ff,ff,00,00,ff,ff,ff,00,ff,00,ff,ff,ff,ff,00,ff,00
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]
amd64_CopyFiles=10,system32
x86_CopyFiles=10,system32
wow64_CopyFiles=10,syswow64


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

[Strings]
VendorName="Athena Smartcard Solutions"
MediaDescription="ASECard Smart Card Mini Driver Installation Disk"
ASECardDeviceName="ASECard Minidriver"
SmartCardName="SOFTWARE\Microsoft\Cryptography\Calais\SmartCards\ASECard Crypto"
SmartCardNameWOW64="SOFTWARE\Wow6432Node\Microsoft\Cryptography\Calais\SmartCards\ASECard Crypto"
SmartCardCardModule="asemd.dll"
umpass.SVCDESC="Microsoft UMPass Driver"