; usb_device.inf

[Strings]
DeviceName = "Maple Serial"
VendorName = "LeafLabs, LLC"
SourceName = "Maple Serial Install Disk"
DeviceID   = "VID_1EAF&PID_0004"
DeviceGUID = "{6A9628B3-CB24-4275-88BD-13DD41F02899}"

[Version]
Signature   = "$Windows NT$"
Class       = Ports
ClassGuid   = {4D36E978-E325-11CE-BFC1-08002BE10318}
Provider    = %VendorName%
CatalogFile = usb_device.cat
DriverVer   = 11/17/2019, 1.0.0.0

[Manufacturer]
%VendorName%=DeviceList, NTamd64, NTia64

[DestinationDirs]
FakeModemCopyFileSection=12
DefaultDestDir=12

[DeviceList]
%DeviceName% = DriverInstall, USB\%DeviceID%

[DeviceList.NTamd64]
%DeviceName% = DriverInstall, USB\%DeviceID%

[DeviceList.NTia64]
%DeviceName% = DriverInstall, USB\%DeviceID%

[DriverInstall]
include=mdmcpq.inf,usb.inf
CopyFiles = FakeModemCopyFileSection
AddReg=DriverAddReg

[DriverAddReg]
HKR,,DevLoader,,*ntkern 
HKR,,NTMPDriver,,usbser.sys 
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[DriverInstall.Services]
include=mdmcpq.inf
AddService=usbser, 0x00000002, DriverService

[DriverService]
DisplayName=%ServiceName%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys
LoadOrderGroup=Base
