From: Guy_Z on
Hello all...

I need some help from the experts here...

how do I install the winusb driver?
I looked at the inf file kindly given by lvr. I've made several changes but
it still doesnt work. "the system cannot find the specified file"
I've placed:
WinUSBCoInstaller.dll
WUDFUpdate_01005.dll
WdfCoInstaller01005.dll
winusb.inf
and also the
winusb.sys (copied from system32\drivers)
in the same folder and directed the device manager to the inf file. but
still I got the above error...
The terasic_inf.usb file is the original driver based on bulkusb of the DDK-
I want to use the winusb instead.

ANY HELP IS WELCOMED....
I am a bit lost here :)

so thanks ahead.

Guy.

here is the content of my inf file:
; Adapted from the example INF in the Microsoft document "How to Use WinUSB
to Communicate with a USB Device"

[Version]
Signature = "$Windows NT$"
Class = USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
Provider = %ProviderName%
DriverVer=02/07/2008,1.0.0
;CatalogFile=MyCatFile.cat

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

[Manufacturer]
%ProviderName% = MyDevice_WinUSB,NTx86,NTamd64

[MyDevice_WinUSB.NTx86]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_09FB&PID_DE30

[MyDevice_WinUSB.NTamd64]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_09FB&PID_DE30

; =================== 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.Wdf]
KmdfService=WINUSB, WinUsb_Install
UmdfServiceOrder=WINUSB

[WinUSB_Install]
KmdfLibraryVersion=1.5

[USB_Install.HW]
AddReg=Dev_AddReg

[Dev_AddReg]
HKR,,DeviceInterfaceGUIDs,0x10000,"{BCCA653B-9D84-4549-A571-0EAEABD61BE8}"

[USB_Install.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WinUSBCoInstaller.dll","WUDFUpdate_01005.dll","WdfCoInstaller01005.dll,WdfCoInstaller"

[CoInstallers_CopyFiles]
WinUSBCoInstaller.dll
WdfCoInstaller01005.dll
WUDFUpdate_01005.dll

[DestinationDirs]
CoInstallers_CopyFiles=11

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

[SourceDisksNames.x86]
1 = %DISK_NAME%,,,\i386

[SourceDisksNames.amd64]
2 = %DISK_NAME%,,,\amd64

[SourceDisksFiles.x86]
WinUSBCoInstaller.dll=1
WdfCoInstaller01007.dll=1
WUDFUpdate_01007.dll=1

[SourceDisksFiles.amd64]
WinUSBCoInstaller.dll=2
WdfCoInstaller01007.dll=2
WUDFUpdate_01007.dll=2

; Copy Files section
;------------------------------------------------------------------------------
[_CopyFiles_sys]
winusb.sys

;*************************************************
*****************************
; Destination Directories
;------------------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir = 12 ; %SystemRoot%\system32\drivers
_CopyFiles_sys = 12

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

[Strings]
ProviderName="Lakeview Research"
USB\MyDevice.DeviceDesc="WinUSB Demo"
WinUSB_SvcDesc="WinUSB Demo"
DISK_NAME="My Install Disk"


From: David Grayson David on
Since your error message was "The system cannot find the specified file." you
have to look carefully at all the filenames and directories specified in the
INF file.

I already spotted a problem: your INF file refers to WdfCoInstaller01007.dll
but the file you actually have is WdfCoInstaller01005.dll

You can get 01007 by downloding the Windows DDK.

The WdfCoInstaller01007.dll and WinUSBCoInstaller.dll are different
depending on which architecture. The different versions are supposed to be
in different directories. You should figure out what the INF file is saying
about which directory those files are in, and then make sure that your files
are in the right directory.

For example, one common thing to do is to have a directory structure like
this:
../driver.inf
../amd64/WdfCoInstaller01007.dll
../amd64/WinUSBCoInstaller.dll
../ia64/WdfCoInstaller01007.dll
../ia64/WinUSBCoInstaller.dll
../x86/WdfCoInstaller01007.dll
../x86/WinUSBCoInstaller.dll

--David Grayson
http://www.DavidEGrayson.com/

"Guy_Z" wrote:

> Hello all...
>
> I need some help from the experts here...
>
> how do I install the winusb driver?
> I looked at the inf file kindly given by lvr. I've made several changes but
> it still doesnt work. "the system cannot find the specified file"
> I've placed:
> WinUSBCoInstaller.dll
> WUDFUpdate_01005.dll
> WdfCoInstaller01005.dll
> winusb.inf
> and also the
> winusb.sys (copied from system32\drivers)
> in the same folder and directed the device manager to the inf file. but
> still I got the above error...
> The terasic_inf.usb file is the original driver based on bulkusb of the DDK-
> I want to use the winusb instead.
>
> ANY HELP IS WELCOMED....
> I am a bit lost here :)
>
> so thanks ahead.
>
> Guy.
>
> here is the content of my inf file:
> ; Adapted from the example INF in the Microsoft document "How to Use WinUSB
> to Communicate with a USB Device"
>
> [Version]
> Signature = "$Windows NT$"
> Class = USB
> ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
> Provider = %ProviderName%
> DriverVer=02/07/2008,1.0.0
> ;CatalogFile=MyCatFile.cat
>
> ; ========== Manufacturer/Models sections ===========
>
> [Manufacturer]
> %ProviderName% = MyDevice_WinUSB,NTx86,NTamd64
>
> [MyDevice_WinUSB.NTx86]
> %USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_09FB&PID_DE30
>
> [MyDevice_WinUSB.NTamd64]
> %USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_09FB&PID_DE30
>
> ; =================== 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.Wdf]
> KmdfService=WINUSB, WinUsb_Install
> UmdfServiceOrder=WINUSB
>
> [WinUSB_Install]
> KmdfLibraryVersion=1.5
>
> [USB_Install.HW]
> AddReg=Dev_AddReg
>
> [Dev_AddReg]
> HKR,,DeviceInterfaceGUIDs,0x10000,"{BCCA653B-9D84-4549-A571-0EAEABD61BE8}"
>
> [USB_Install.CoInstallers]
> AddReg=CoInstallers_AddReg
> CopyFiles=CoInstallers_CopyFiles
>
> [CoInstallers_AddReg]
> HKR,,CoInstallers32,0x00010000,"WinUSBCoInstaller.dll","WUDFUpdate_01005.dll","WdfCoInstaller01005.dll,WdfCoInstaller"
>
> [CoInstallers_CopyFiles]
> WinUSBCoInstaller.dll
> WdfCoInstaller01005.dll
> WUDFUpdate_01005.dll
>
> [DestinationDirs]
> CoInstallers_CopyFiles=11
>
> ; ================= Source Media Section =====================
>
> [SourceDisksNames.x86]
> 1 = %DISK_NAME%,,,\i386
>
> [SourceDisksNames.amd64]
> 2 = %DISK_NAME%,,,\amd64
>
> [SourceDisksFiles.x86]
> WinUSBCoInstaller.dll=1
> WdfCoInstaller01007.dll=1
> WUDFUpdate_01007.dll=1
>
> [SourceDisksFiles.amd64]
> WinUSBCoInstaller.dll=2
> WdfCoInstaller01007.dll=2
> WUDFUpdate_01007.dll=2
>
> ; Copy Files section
> ;------------------------------------------------------------------------------
> [_CopyFiles_sys]
> winusb.sys
>
> ;*************************************************
> *****************************
> ; Destination Directories
> ;------------------------------------------------------------------------------
> [DestinationDirs]
> DefaultDestDir = 12 ; %SystemRoot%\system32\drivers
> _CopyFiles_sys = 12
>
> ; =================== Strings ===================
>
> [Strings]
> ProviderName="Lakeview Research"
> USB\MyDevice.DeviceDesc="WinUSB Demo"
> WinUSB_SvcDesc="WinUSB Demo"
> DISK_NAME="My Install Disk"
>
>
>