;
; %%COPYRIGHT%%
;
; Planmeca Oy ProSensor64bit_Enumdrv USB transport layer
;

[Version]
Signature="$WINDOWS NT$"
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
Provider=%Mfg%
DriverVer=03/23/2009,2.0.0.70

; ================= Device section =====================

[Manufacturer]
%Mfg%=DeviceList,NTx86,NTamd64

; For Win2K
[DeviceList]
%USB\VID_09D9&PID_0040&MI_00.DeviceDesc% = DevInstall, USB\VID_09D9&PID_0040&MI_00

; For XP and later
[DeviceList.NTx86]
%USB\VID_09D9&PID_0040&MI_00.DeviceDesc% = DevInstall, USB\VID_09D9&PID_0040&MI_00

; For XP and later x64
[DeviceList.NTamd64]
%USB\VID_09D9&PID_0040&MI_00.DeviceDesc% = DevInstall, USB\VID_09D9&PID_0040&MI_00

[DevInstall.NT]
CopyFiles=DevInstall.Files.Ext

[DevInstall.NT.Services]
AddService = %ServiceName%, %SPSVCINST_ASSOCSERVICE%, DevInstall.AddService

[DevInstall.AddService]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\%ServiceName%.sys
AddReg         = DevInstall.AddService.AddReg

[DevInstall.AddService.AddReg]
HKR, Parameters, DebugLevel, 0x00010001, 2

[DevInstall.Files.Ext]
%ServiceName%.sys,,,0x6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK

[SourceDisksNames]
1=%Disk_Description%,,,

[SourceDisksFiles]
%ServiceName%.sys = 1

[DestinationDirs]
DefaultDestDir = 12

;-------------- WDF Coinstallers installation

[DestinationDirs]
CoInstaller_CopyFiles = 10,System32

[DevInstall.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
wdfcoinstaller01007.dll

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "wdfcoinstaller01007.dll,WdfCoInstaller"

[SourceDisksFiles]
wdfcoinstaller01007.dll=1 ; make sure the number matches with SourceDisksNames

[DevInstall.NT.Wdf]
KmdfService = %ServiceName%, DevInstall_wdfsect

[DevInstall_wdfsect]
KmdfLibraryVersion = 1.7

;---------------------------------------------------------------;

[Strings]
USB\VID_09D9&PID_0040&MI_00.DeviceDesc = "ProSensorEnum_64bit"
Mfg = "Planmeca Oy"
Disk_Description = "ProSensor installation"
ServiceName = "ProSensor64bit_Enumdrv"
SPSVCINST_ASSOCSERVICE = 0x00000002

