Ticket #143 (closed defect: fixed)
Opened 10 months ago
Last modified 8 months ago
WinUSB backend: Provide new driver for Windows 7
| Reported by: | martindjr | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | libusb-1.0 Windows backend | |
| Keywords: | Cc: | ||
| Blocked By: | Blocks: |
Description
The driver files for the Windows backend contain OLD driver files WdfCoInstaller01009.dll and winusbcoinstaller2.dll.
To be able to install WinUSB under Windows 7 the latest versions of these files (the first file name has changed to WdfCoInstaller01011.dll) must be used; otherwise you'll get an error.
The .inf example files must be updated due to the changed file name.
Could someone update the driver file ZIP file and upload it for download? Thanks.
The files are installed when installing the WDF and the redistributable files update package (~ 1GiB!!).
Both files are named "redistributable files" by Microsoft.
Change History
comment:1 follow-up: ↓ 3 Changed 10 months ago by stuge
comment:2 in reply to: ↑ description ; follow-up: ↓ 4 Changed 10 months ago by stuge
Thinking about this some more, there is a large number of unanswered questions for this issue.
Replying to martindjr:
The driver files for the Windows backend contain OLD driver files WdfCoInstaller01009.dll and winusbcoinstaller2.dll.
What driver files do you refer to, exactly?
To be able to install WinUSB under Windows 7 the latest versions of these files (the first file name has changed to WdfCoInstaller01011.dll) must be used; otherwise you'll get an error.
Where do you get the error, and what exactly *is* the error?
The .inf example files must be updated due to the changed file name.
libusb itself does not includes .inf examples. Where did you find the .inf example files?
Could someone update the driver file ZIP file and upload it for download? Thanks.
Well only if you also mention which driver file ZIP file you refer to. libusb doesn't include driver files..
Please clarify the above questions so that it might be possible to resolve the issue you point out.
Thanks!
comment:3 in reply to: ↑ 1 Changed 10 months ago by martindjr
Replying to stuge:
Doesn't Windows 7 already ship with WinUSB driver files?
Windows 7, Windows Vista and Windows XP SP3 already ship with WinUSB.
However to install the WinUSB driver for a certain device you do not only need the .inf file (as it is sufficient for some other drivers) but you need the two "Installer DLL files" mentioned as well. I do not know what these "Installer DLL files" do!
comment:4 in reply to: ↑ 2 Changed 10 months ago by martindjr
Replying to stuge:
The driver files for the Windows backend contain OLD driver files WdfCoInstaller01009.dll and winusbcoinstaller2.dll.
What driver files do you refer to, exactly?
On the page http://libusb.org/wiki/windows_backend there is a link to the ZIP package WinUSB driver files located on libusb-winusb-wip.googlecode.com.
In fact this ZIP package does not contain the WinUSB driver itself but the "Installer DLLs" mentioned in my last post and three .inf file examples that have to be adapted for each device.
The DLL files from the ZIP package are old files that obviously are no longer compatible with Windows 7. The up-to-date files can be downloaded at http://msdn.microsoft.com/en-US/windows/hardware/br259104 (24 Megabyte) however this is an installer package that can only be installed if you downloaded and installed the driver development package (free download from Microsoft but ~1 Gigabyte!) before. (However it seems to be possible to extract the DLL files via 7-zip.)
The files related to WinUSB are only ~5 Megabytes in sum.
I now did the 1GiB + 24MiB downloads so I could modify the ZIP file however I have no possibility to upload.
To be able to install WinUSB under Windows 7 the latest versions of these files (the first file name has changed to WdfCoInstaller01011.dll) must be used; otherwise you'll get an error.
Where do you get the error, and what exactly *is* the error?
When using the files from the ZIP package mentioned above under Windows 7 you'll get an error message when trying to install the driver (assigning the WinUSB driver to a device). The error message itself gives no information (simply something like "the driver was not installed correctly").
The driver does not install; a class device (Storage, HID, ...) will still be bound to the default driver instead.
comment:5 Changed 10 months ago by martindjr
Under Windows 7 it SEEMS to be possible to install the WinUSB driver just having an .inf file (without "Installer DLLs").
However I still have to check this out on a computer that has never seen the "Installer DLLs", yet...
comment:6 Changed 10 months ago by timrprobocom
Windows XP does not ship with WinUSB at all. No version does -- not even SP3.
Vista ships with WinUSB version 1, and KMDF version 1.5.
Windows 7 ships with WinUSB version 2, and KMDF version 1.9
Windows 8 will ship with WinUSB version 2, and KMDF version 1.11.
The co-installers install the drivers if they are not already present, OR if the version is too old. If you run WdfCoInstaller01009.dll on Vista (which contains 1.5), it will install the 1.9 version. If you run WdfCoInstaller01009.dll (or 01007 or 01005) on Windows 7, it does nothing. If you KNOW your package will only run on a system where KMDF and WinUSB are already installed, then you do not need to ship the installers. That means you can't support XP, however.
comment:7 Changed 10 months ago by martindjr
Thanks for the comment, timrprobocom.
Unfortunately under Windows 7 Pro 64-bit installation fails when the packet contains version 1.9 DDLs - I do not know why (in the end I used the 1.11 DLLs).
Under Windows 7 Ultimate 32-bit I tried to install without Co-Installer DLL files. This worked but I had to modify the .inf files.
Maybe on the WIKI page http://libusb.org/wiki/windows_backend the link "WinUSB driver files" should be renamed to "WinUSB driver files for XP/Vista" and a ZIP file with modified .inf files (not containing DLLs) should be provided with a link named "WinUSB driver files for Windows 7/8".
comment:8 Changed 10 months ago by xiaofan
Please try to use the GUI Zadig and see if that works or not. It comes with WinUSB 1.9. And it works for me and many others under Windows 7 x64.
http://sourceforge.net/projects/libwdi/files/zadig/
comment:9 Changed 8 months ago by xiaofan
- Resolution set to fixed
- Status changed from new to closed
New Zadig version has also been released as well to support new KMDF 1.11. So this issue can be closed.
Doesn't Windows 7 already ship with WinUSB driver files?