[Version]
Signature = "$Windows NT$"
DriverPackageDisplayName=%DESC%
Class = KeyenceUSB
ClassGuid={EE304F37-F588-45FC-91FE-B76873981AD1}
Provider = %ProviderName%
CatalogFile=KEYENCE_VR_SERIES.cat
DriverVer=03/26/2020,1.0.0.0

; ================== Class section ==================

[ClassInstall32]
Addreg=KeyenceClassReg

[KeyenceClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5

; ========== Manufacturer/Models sections ===========

[Manufacturer]
%ProviderName% = KEYENCE,NTamd64

[KEYENCE.NTamd64]
%USB\KeyenceDevice.DeviceDesc% =USB_Install,USB\VID_0720&PID_102C

; =================== Installation ===================

;[1]
[USB_Install]
Include=winusb.inf
Needs=WINUSB.NT

;[2]
[USB_Install.Services]
Include=winusb.inf
AddService=WinUSB,0x00000002,WinUSB_ServiceInstall

;[3]
[WinUSB_ServiceInstall]
DisplayName     = %WinUSB_SvcDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\WinUSB.sys

;[4]
[USB_Install.Wdf]
KmdfService=WINUSB, WinUsb_Install

[WinUSB_Install]
KmdfLibraryVersion=1.9

;[5]
[USB_Install.HW]
AddReg=Dev_AddReg

[Dev_AddReg]
HKR,,DeviceInterfaceGUIDs,0x10000,"{B708995F-18C9-4D52-8D29-41FF2BFBF215}"

;[6]
[USB_Install.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUsbCoinstaller2.dll"

[CoInstallers_CopyFiles]
WdfCoInstaller01009.dll
WinUsbCoinstaller2.dll

[DestinationDirs]
CoInstallers_CopyFiles=11

; ================= Source Media Section =====================
;[7]

[SourceDisksNames]
1 = %DISK_NAME%,,,\amd64

[SourceDisksFiles.amd64]
WinUSBCoInstaller2.dll=1
WdfCoInstaller01009.dll=1

; =================== Strings ===================

[Strings]
ProviderName="KEYENCE"
DESC="VR Series USB-Driver"
WinUSB_SvcDesc="WinUSB.sys : KEYENCE USB Device"
DISK_NAME="KEYENCE USB Driver Installation Disk"
ClassName="KEYENCE USB Device Class"
USB\KeyenceDevice.DeviceDesc="VR Series"
