Hello,
I’ve been tasked to make the Windows7 WDM USB driver code to make compatible with Windows 10 and Windows 11 Operating systems.
Installation using INF and HaveDisk method was successful for Windows7 Operating system but not for Windows10/11 Operating systems.
However, there is a sample application( which used to communicate with the device) installs the same driver on all three operating systems i.e. Windows 7/10/11.
I suspect that INF is compatible for Windows 10/11 operating systems.
Could you please help me understand what is the issue here
`[Version]
Signature=$Windows NT$
Class=WAUSB
ClassGUID={02CD7357-C6B4-4B0F-A27A-0326A7527B9E}
Provider=%WA_STR%
CatalogFile=wausb.cat
DriverVer=04/04/2018,1.9.12.0
;----------------------------------------------------------------------------
[SourceDisksNames]
1 = %DiskId1%,,,\i386
[SourceDisksNames.x86]
1 = %DiskId1%,,,\i386
[SourceDisksNames.amd64]
1 = %DiskId1%,,,\amd64
[SourceDisksFiles]
wausb.sys = 1,,
wausb.dll = 1,,
[SourceDisksFiles.amd64]
wausb.sys = 1,,
wausb.dll = 1,,
wausb32.dll = 1,,
[DestinationDirs]
DefaultDestDir=10
CopyDLLFiles = 11
CopyWOW64DLLFiles = 10, SysWOW64
CopyDrvFiles = 12
;----------------------------------------------------------------------------
[ClassInstall32]
AddReg=ClassAddReg
[ClassAddReg]
HKR,,,%REG_SZ%,%DeviceClassName%
HKR,,Icon,,"-20"
HKR,,NoInstallClass,,1
;-----------------------------------------------------------------------------
[Manufacturer]
%WAMfg%=DeviceList, NTx86, NTamd64
[DeviceList]
"WA CP150" = DriverInstall, USB\VID_0770&PID_1111
[DeviceList.NTx86]
"WA CP150" = DriverInstall, USB\VID_0770&PID_1111
[DeviceList.NTAMD64]
"WA CP150" = DriverInstall, USB\VID_0770&PID_1111
[DriverInstall]
CopyFiles=CopyDrvFiles
CopyFiles=CopyDLLFiles
[DriverInstall64]
CopyFiles=CopyDrvFiles
CopyFiles=CopyDLLFiles
CopyFiles=CopyWOW64DLLFiles
[CopyDrvFiles]
wausb.sys
[CopyDLLFiles]
wausb.dll
[CopyWOW64DLLFiles]
wausb.dll, wausb32.dll
[DriverInstall64.Services]
AddService=WAUsb,%SPSVCINST_ASSOCSERVICE%,DriverService
[DriverInstall.Services]
AddService=WAUsb,%SPSVCINST_ASSOCSERVICE%,DriverService
[DriverService]
DisplayName = %DESCRIPTION_STR%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\wausb.sys
;------------------------------------------------------------------------------
[Strings]
WAMfg = "WA"
WA_STR = "WA"
DESCRIPTION_STR= "WA Generic USB Driver"
USBDEVDESC = "WA USB Devices"
DiskId1 = "WA Driver Installation Disk #1"
DeviceClassName = "WA USB Devices"
;------------------------------------------------------------------------------
;Handy macro substitution
SERVICE_KERNEL_DRIVER = 1
SERVICE_DEMAND_START = 0X03
SERVICE_ERROR_NORMAL = 1
REG_EXPAND_SZ = 0X00020000
REG_DWORD = 0X00010001
FLG_ADDREG_TYPE_DWORD = 0X00010001
REG_MULTI_SZ = 0X00010000
REG_SZ = 0X00000000
DEVICECHARACTER_FLAGS= 0x00000100
DELFLG_IN_USE1 = 0x00010000
SPSVCINST_ASSOCSERVICE = 0x00000002
`
When ran Inf2cat it is giving an error. Please find the log below:
Inf2Cat Tool Output:
..........................
Signability test failed.
Errors:
22.9.1: wausb.sys in [copydrvfiles] of WaUsb\wausb.inf is missing or cannot be decompressed from source media. Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
22.9.1: wausb.dll in [copydllfiles] of WaUsb\wausb.inf is missing or cannot be decompressed from source media. Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
22.9.1: wausb.dll in [copywow64dllfiles] of WaUsb\wausb.inf is missing or cannot be decompressed from source media. Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
Warnings:
None