; Copyright (C) 2006-2010 Validity Sensors, Inc, All Rights Reserved.
; wbf_vfs_0018.inf - Install the Validity Fingerprint Sensor USB user-mode driver
;

[Version]
Signature="$Windows NT$"
Class=Biometric
ClassGuid={53D29EF7-377C-4D14-864B-EB3A85769359}
Provider=%VFSUMDF%
DriverVer=07/22/2009,4.5.235.00
CatalogFile=wbf_vfs_0018_wu.cat

; ========== Manufacturer/Models sections ===========
[Manufacturer]
%VFSUMDF%=Validity,NTx86,NTamd64

[Validity.NTx86]
%VfsUsbDeviceName0018%=Biometric_Install, USB\VID_138A&PID_0018

[Validity.NTamd64]
%VfsUsbDeviceName0018%=Biometric_Install, USB\VID_138A&PID_0018

; =================== Installation ===================
; from Lofofest WLK test result, should remove it
;[ClassInstall32]
;AddReg=BiometricClass_RegistryAdd
;
;[BiometricClass_RegistryAdd]
;HKR,,,,%ClassName%
;HKR,,Icon,,"-201"
;HKR,,IconPath,0x00010000,"%SYSTEMROOT%\system32\SysClass.dll,-201"

; ================= Source Media Section =====================
[SourceDisksNames]
1 = %DISK_NAME%,,,\x86
2 = %DISK_NAME%,,,\X64

[SourceDisksFiles.x86]
wbf_vfs_0018.dll=1
vcsAPIFORWBF.dll=1
vcsWBFEngineAdapter.dll=1
valWBFPolicyService.exe=1
ValidityFMA.exe=1
ValidityFMA.exe.config=1
FPManager.resources.dll.cs-cz=1
FPManager.resources.dll.da-DK=1
FPManager.resources.dll.de-DE=1
FPManager.resources.dll.el-GR=1
FPManager.resources.dll.es-ES=1
FPManager.resources.dll.fi-FI=1
FPManager.resources.dll.fr-FR=1
FPManager.resources.dll.hu-HU=1
FPManager.resources.dll.it-It=1
FPManager.resources.dll.ja-JP=1
FPManager.resources.dll.ko-KR=1
FPManager.resources.dll.nb-NO=1
FPManager.resources.dll.nl-NL=1
FPManager.resources.dll.pl-PL=1
FPManager.resources.dll.pt-BR=1
FPManager.resources.dll.pt-PT=1
FPManager.resources.dll.ru-RU=1
FPManager.resources.dll.sk-SK=1
FPManager.resources.dll.sl-SI=1
FPManager.resources.dll.sv-se=1
FPManager.resources.dll.tr-tr=1
FPManager.resources.dll.zh-chs=1
FPManager.resources.dll.zh-cht=1
; TODO: redist binaries not available in M3.  Uncomment for final release
;WudfUpdate_$UMDFCOINSTALLERVERSION$.dll=1

[SourceDisksFiles.amd64]
wbf_vfs_0018.dll=2
vcsAPIFORWBF.dll=2
vcsWBFEngineAdapter.dll=2
valWBFPolicyService.exe=2
ValidityFMA.exe=2
ValidityFMA.exe.config=2
FPManager.resources.dll.cs-cz=2
FPManager.resources.dll.da-DK=2
FPManager.resources.dll.de-DE=2
FPManager.resources.dll.el-GR=2
FPManager.resources.dll.es-ES=2
FPManager.resources.dll.fi-FI=2
FPManager.resources.dll.fr-FR=2
FPManager.resources.dll.hu-HU=2
FPManager.resources.dll.it-It=2
FPManager.resources.dll.ja-JP=2
FPManager.resources.dll.ko-KR=2
FPManager.resources.dll.nb-NO=2
FPManager.resources.dll.nl-NL=2
FPManager.resources.dll.pl-PL=2
FPManager.resources.dll.pt-BR=2
FPManager.resources.dll.pt-PT=2
FPManager.resources.dll.ru-RU=2
FPManager.resources.dll.sk-SK=2
FPManager.resources.dll.sl-SI=2
FPManager.resources.dll.sv-se=2
FPManager.resources.dll.tr-tr=2
FPManager.resources.dll.zh-chs=2
FPManager.resources.dll.zh-cht=2

; TODO: redist binaries not available in M3.  Uncomment for final release
;WudfUpdate_$UMDFCOINSTALLERVERSION$.dll=1

; =================== UMDF wbvfs Device - WBDI IOCTL interface ==================================

[Biometric_Install.NT]
CopyFiles=UMDriverCopy
CopyFiles=VCSAPIForWbfCopy
CopyFiles=AdaptersCopy
CopyFiles=ValidityFMAAppCopy
CopyFiles=ValidityFMAApp_cs-CZ_Copy
CopyFiles=ValidityFMAApp_da-DK_Copy
CopyFiles=ValidityFMAApp_de-DE_Copy
CopyFiles=ValidityFMAApp_el-GR_Copy
CopyFiles=ValidityFMAApp_es-ES_Copy
CopyFiles=ValidityFMAApp_fi-FI_Copy
CopyFiles=ValidityFMAApp_fr-FR_Copy
CopyFiles=ValidityFMAApp_hu-HU_Copy
CopyFiles=ValidityFMAApp_it-IT_Copy
CopyFiles=ValidityFMAApp_ja-JP_Copy
CopyFiles=ValidityFMAApp_ko-KR_Copy
CopyFiles=ValidityFMAApp_nb-NO_Copy
CopyFiles=ValidityFMAApp_nl-NL_Copy
CopyFiles=ValidityFMAApp_pl-PL_Copy
CopyFiles=ValidityFMAApp_pt-BR_Copy
CopyFiles=ValidityFMAApp_pt-PT_Copy
CopyFiles=ValidityFMAApp_ru-RU_Copy
CopyFiles=ValidityFMAApp_sk-SK_Copy
CopyFiles=ValidityFMAApp_sl-SI_Copy
CopyFiles=ValidityFMAApp_sv-SE_Copy
CopyFiles=ValidityFMAApp_tr-TR_Copy
CopyFiles=ValidityFMAApp_zh-CHS_Copy
CopyFiles=ValidityFMAApp_zh-CHT_Copy

Include=WINUSB.INF                      ; Import sections from WINUSB.INF
Needs=WINUSB.NT                         ; Run the CopyFiles & AddReg directives for WinUsb.INF
FeatureScore=0xFF

[Biometric_Install.NT.hw]
AddReg=Biometric_Device_AddReg
AddReg=DriverPlugInAddReg

[Biometric_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall  ; flag 0x2 sets this as the service for the device
AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall  ; this service is installed because its a filter.
AddService=valWBFPolicyService,0x000009f8,WBFPolicy_ServiceInstall  ; Validity policy service for WBF.


[Biometric_Install.NT.Wdf]
KmdfService=WINUSB, WinUsb_Install
UmdfDispatcher=WinUsb
UmdfService=wbf_vfs_0018, wbf_vfs_Install
UmdfServiceOrder=wbf_vfs_0018

[Biometric_Install.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[WinUsb_Install]
KmdfLibraryVersion = 1.9

[wbf_vfs_Install]
UmdfLibraryVersion=1.9.0
DriverCLSID = "{AE99B43C-06A7-4edc-9980-A648BAAB6285}"  ; must unique for this driver
ServiceBinary = %12%\UMDF\wbf_vfs_0018.dll

[Biometric_Device_AddReg]
HKR,,"DeviceCharacteristics",0x10001,0x0100     ; Use same security checks on relative opens
HKR,,"Security",,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"  ; Allow generic-all access to Built-in administrators and Local system
HKR,,"LowerFilters",0x00010008,"WinUsb" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
HKR,,"Exclusive",0x10001,1
HKR,,"SystemWakeEnabled",0x00010001,0
HKR,,"DeviceIdleEnabled",0x00010001,1
HKR,,"UserSetDeviceIdleEnabled",0x00010001,1
HKR,,"DefaultIdleState",0x00010001,1
HKR,,"DefaultIdleTimeout",0x00010001,5000

[DriverPlugInAddReg]
HKR,WinBio\Configurations,DefaultConfiguration,,"0"
HKR,WinBio\Configurations\0,SensorMode,0x10001,1                                ; Basic - 1, Advanced - 2
HKR,WinBio\Configurations\0,SystemSensor,0x10001,1                              ; UAC/Winlogon - 1
HKR,WinBio\Configurations\0,SensorAdapterBinary,,"WinBioSensorAdapter.DLL"      ; Windows built-in WBDI sensor adapter.
HKR,WinBio\Configurations\0,EngineAdapterBinary,,"vcsWBFEngineAdapter.DLL"          ; Vendor engine
HKR,WinBio\Configurations\0,StorageAdapterBinary,,"winbioStorageAdapter.DLL"    ; Windows built-in storage adapter
HKR,WinBio\Configurations\0,DatabaseId,,"1000F3B5-9412-490e-97BA-4AA5A1A171AE"  ; must have Validity specific GUID for DB

[DatabaseAddReg]
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},BiometricType,0x00010001,0x00000008
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},Attributes,0x00010001,0x00000001
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},Format,,"00000000-0000-0000-0000-000000000000"
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},InitialSize,0x00010001,0x00000020
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},AutoCreate,0x00010001,0x00000001
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},AutoName,0x00010001,0x00000001
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},FilePath,,""
HKLM, System\CurrentControlSet\Services\WbioSrvc\Databases\{1000F3B5-9412-490e-97BA-4AA5A1A171AE},ConnectionString,,""

[ValFMAAppAddReg]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\WinBio\FMA\Validity Sensors"," Inc.\Validity Sensors (WBF) (PID=0018),CommandLine,,"""%16422%\Validity Sensors\FMA\ValidityFMA.exe"" /biounit:%{biounitid}"

[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
LoadOrderGroup = Base
AddReg=DatabaseAddReg
AddReg=ValFMAAppAddReg

[WinUsb_ServiceInstall]
DisplayName     = %WinUsb_SvcDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\WinUSB.sys

[WBFPolicy_ServiceInstall]
DisplayName     = %WBFService_SvcDesc%
Description     = %WBFService_SvcDesc%
ServiceType     = 0x00000010                  ; SERVICE_WIN32_OWN_PROCESS
StartType       = 0x2                         ; SERVICE_AUTO_START
ErrorControl    = 0x0                         ; SERVICE_ERROR_IGNORE
ServiceBinary   = %11%\valWBFPolicyService.exe

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WudfCoinstaller.dll"
; TODO: redist binaries not available in M3.  Uncomment for final release
;HKR,,CoInstallers32,0x00010000,"WudfUpdate_$UMDFCOINSTALLERVERSION$.dll"
;HKR,,CoInstallers32,0x00010000,"WudfCoinstaller.dll"

[CoInstallers_CopyFiles]
; TODO: redist binaries not available in M3.  Uncomment for final release
;WudfUpdate_$UMDFCOINSTALLERVERSION$.dll

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to driversMdf
; TODO: redist binaries not available in M3.  Uncomment for final release
;CoInstallers_CopyFiles=11
VCSAPIForWbfCopy=11
AdaptersCopy=11,WinBioPlugIns
ValidityFMAAppCopy=16422,Validity Sensors\FMA
ValidityFMAApp_cs-CZ_Copy=16422,Validity Sensors\FMA\cs-CZ
ValidityFMAApp_da-DK_Copy=16422,Validity Sensors\FMA\da-DK
ValidityFMAApp_de-DE_Copy=16422,Validity Sensors\FMA\de-DE
ValidityFMAApp_el-GR_Copy=16422,Validity Sensors\FMA\el-GR
ValidityFMAApp_es-ES_Copy=16422,Validity Sensors\FMA\es-ES
ValidityFMAApp_fi-FI_Copy=16422,Validity Sensors\FMA\fi-FI
ValidityFMAApp_fr-FR_Copy=16422,Validity Sensors\FMA\fr-FR
ValidityFMAApp_hu-HU_Copy=16422,Validity Sensors\FMA\hu-HU
ValidityFMAApp_it-IT_Copy=16422,Validity Sensors\FMA\it-IT
ValidityFMAApp_ja-JP_Copy=16422,Validity Sensors\FMA\ja-JP
ValidityFMAApp_ko-KR_Copy=16422,Validity Sensors\FMA\ko-KR
ValidityFMAApp_nb-NO_Copy=16422,Validity Sensors\FMA\nb-NO
ValidityFMAApp_nl-NL_Copy=16422,Validity Sensors\FMA\nl-NL
ValidityFMAApp_pl-PL_Copy=16422,Validity Sensors\FMA\pl-PL
ValidityFMAApp_pt-BR_Copy=16422,Validity Sensors\FMA\pt-BR
ValidityFMAApp_pt-PT_Copy=16422,Validity Sensors\FMA\pt-PT
ValidityFMAApp_ru-RU_Copy=16422,Validity Sensors\FMA\ru-RU
ValidityFMAApp_sk-SK_Copy=16422,Validity Sensors\FMA\sk-SK
ValidityFMAApp_sl-SI_Copy=16422,Validity Sensors\FMA\sl-SI
ValidityFMAApp_sv-SE_Copy=16422,Validity Sensors\FMA\sv-SE
ValidityFMAApp_tr-TR_Copy=16422,Validity Sensors\FMA\tr-TR
ValidityFMAApp_zh-CHS_Copy=16422,Validity Sensors\FMA\zh-CHS
ValidityFMAApp_zh-CHT_Copy=16422,Validity Sensors\FMA\zh-CHT

[UMDriverCopy]
wbf_vfs_0018.dll

[VCSAPIForWbfCopy]
vcsAPIFORWBF.dll
valWBFPolicyService.exe

[AdaptersCopy]
vcsWBFEngineAdapter.dll

[ValidityFMAAppCopy]
ValidityFMA.exe
ValidityFMA.exe.config
[ValidityFMAApp_cs-CZ_Copy]
FPManager.resources.dll,FPManager.resources.dll.cs-cz
[ValidityFMAApp_da-DK_Copy]
FPManager.resources.dll,FPManager.resources.dll.da-DK
[ValidityFMAApp_de-DE_Copy]
FPManager.resources.dll,FPManager.resources.dll.de-DE
[ValidityFMAApp_el-GR_Copy]
FPManager.resources.dll,FPManager.resources.dll.el-GR
[ValidityFMAApp_es-ES_Copy]
FPManager.resources.dll,FPManager.resources.dll.es-ES
[ValidityFMAApp_fi-FI_Copy]
FPManager.resources.dll,FPManager.resources.dll.fi-FI
[ValidityFMAApp_fr-FR_Copy]
FPManager.resources.dll,FPManager.resources.dll.fr-FR
[ValidityFMAApp_hu-HU_Copy]
FPManager.resources.dll,FPManager.resources.dll.hu-HU
[ValidityFMAApp_it-IT_Copy]
FPManager.resources.dll,FPManager.resources.dll.it-IT
[ValidityFMAApp_ja-JP_Copy]
FPManager.resources.dll,FPManager.resources.dll.ja-JP
[ValidityFMAApp_ko-KR_Copy]
FPManager.resources.dll,FPManager.resources.dll.ko-KR
[ValidityFMAApp_nb-NO_Copy]
FPManager.resources.dll,FPManager.resources.dll.nb-NO
[ValidityFMAApp_nl-NL_Copy]
FPManager.resources.dll,FPManager.resources.dll.nl-NL
[ValidityFMAApp_pl-PL_Copy]
FPManager.resources.dll,FPManager.resources.dll.pl-PL
[ValidityFMAApp_pt-BR_Copy]
FPManager.resources.dll,FPManager.resources.dll.pt-BR
[ValidityFMAApp_pt-PT_Copy]
FPManager.resources.dll,FPManager.resources.dll.pt-PT
[ValidityFMAApp_ru-RU_Copy]
FPManager.resources.dll,FPManager.resources.dll.ru-RU
[ValidityFMAApp_sk-SK_Copy]
FPManager.resources.dll,FPManager.resources.dll.sk-SK
[ValidityFMAApp_sl-SI_Copy]
FPManager.resources.dll,FPManager.resources.dll.sl-SI
[ValidityFMAApp_sv-SE_Copy]
FPManager.resources.dll,FPManager.resources.dll.sv-SE
[ValidityFMAApp_tr-TR_Copy]
FPManager.resources.dll,FPManager.resources.dll.tr-TR
[ValidityFMAApp_zh-CHS_Copy]
FPManager.resources.dll,FPManager.resources.dll.zh-CHS
[ValidityFMAApp_zh-CHT_Copy]
FPManager.resources.dll,FPManager.resources.dll.zh-CHT


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

[Strings]
VFSUMDF="Validity Sensors, Inc."
MediaDescription="Validity Sensor Driver Installation Media"
ClassName="Biometric Devices"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
VfsUsbDeviceName0018="Validity Sensors (WBF) (PID=0018)" 
WinUsb_SvcDesc="WinUSB Driver"
WBFService_SvcDesc="Validity WBF Policy Service"
DISK_NAME="Validity WinBio Driver Install Disk"
