|
From: Xiaofan C. <xia...@gm...> - 2011-03-21 23:18:56
|
On Tue, Mar 22, 2011 at 4:28 AM, Karl Hoover <kar...@gm...> wrote: > I have tried just about every permutation of paths through this device > driver update process. In the scenario you describe, I am presented an > error "The folder you specified doesn't contain a compatible software > driver for your device. If the folder contains a driver, make sure it > is designed to work with Windows for x64-based systems. > > In yet another scenario (hard to duplicate), the libusb-win32 category > of devices does appear in the device manager and indeed the device as > does appear. But the testlibusb program, as well as our own software > doesn't see any device. As I stated, the only way I've been able to > communicate with my device on Win 7 is use the "Install Now..." button > in the inf-wizard.exe program. When I do that, testlibusb and my own > software can communicate with the device just fine. In this case, the best solution is to provide a driver installer. Pete's Zadig and the GUI inf-wizard are both based on libwdi. They will both work for the users. But the better solution is to use libwdi to generate a driver installer. You may want to take a look at wdi-simple example. http://git.libusb.org/?p=libwdi.git;a=tree;f=examples Travis has put up a driver installer using inno-setup. https://sites.google.com/site/libusbwin32/testing-1/wdi-simple-libusb-win32-iss-example.zip?attredirects=0&d=1 libusb-win32 has a console install-filter program which can install the device driver packages as well, but the problem with it is that you have to use the 64bit install-filter program on 64bit Windows and the 32bit install-filter program on 32bit Windows. USAGE: install-filter [install|uninstall|list] <-ac> <-dc> <-ad> <-c=> <-d=> <-f=> <-p=> <-w=> Commands: Compatible Switches: install (i/-i) <-ac> <-c=> <-d=> <-f=> <-p=> <-w=> uninstall (u/-u) <-ac> <-c=> <-d=> <-f=> <-p=> <-w=> <-ad> list (l/-l) <-ac> <-dc> <-c=> <-p=> <-w=> ... Switches For INF Files: --inf=<your_file.inf> (-f=) install : Installs usb device(s) from an inf file. uninstall: Attempts to roll back a device driver installation. If rollback fails or is unavailable, the device is removed and all root hubs are restarted. list : <NA> -- Xiaofan |