;
; panda.inf
;
; Installs WinUsb
;

[Version]
Signature = "$Windows NT$"
Class     = USBDevice
ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6}
Provider = %ManufacturerName%
CatalogFile=panda.cat

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

[Manufacturer]
;%ManufacturerName% = Standard,NT$ARCH$]
%ManufacturerName% = MyWinUSBDevice,NTx86,NTamd64

;[Standard.NT$ARCH$]
;%DeviceName% =USB_Install, USB\VID_BBAA&PID_DDCC

[MyWinUSBDevice.NTx86]
%DeviceName%=USB_Install, USB\VID_BBAA&PID_DDCC

[MyWinUSBDevice.NTamd64]
%DeviceName%=USB_Install, USB\VID_BBAA&PID_DDCC

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

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

[USB_Install.Services]
Include=winusb.inf
AddService=WinUsb,0x00000002,WinUsb_ServiceInstall

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

[USB_Install.HW]
AddReg=Dev_AddReg

[Dev_AddReg]
; By default, USBDevice class uses iProduct descriptor to name the device in
; Device Manager on Windows 8 and higher.
; Uncomment for this device to use %DeviceName% on Windows 8 and higher:
;HKR,,FriendlyName,,%DeviceName%
HKR,,DeviceInterfaceGUIDs,0x10000,"{cce5291c-a69f-4995-a4c2-2ae57a51ade9}"

[USB_Install.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller"

[CoInstallers_CopyFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll

[DestinationDirs]
CoInstallers_CopyFiles=11

; ================= Source Media Section =====================

[SourceDisksNames]
1 = %DiskName%

[SourceDisksFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1

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

[Strings]
ManufacturerName="comma.ai"
ClassName="Universal Serial Bus devices"
;ClassName="OBD Adapter"
DiskName="The Internet I guess."
WinUsb_SvcDesc="panda WinUSB Driver"
DeviceName="panda"
REG_MULTI_SZ = 0x00010000
