Re: Generating inf file for multiple devices.
Travis <[email protected]>
| Newsgroups | gmane.comp.lib.libusb.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
A couple more things. If all of these devices use libusbK/WinUSB then this becomes even easier to do. There are 2 different techniques you can use for this. Method #1 1) Open your .inf file and locate the "DeviceID" in the [Strings] section. Remove this string. 2) Find all the places where the %DeviceID% token is used and replace it with ALL of your device IDs. IE: ; For Win2K [LUsbK_DeviceGroup] %DeviceName%=LUsbK_Device, USB\%DeviceID% becomes: ; For Win2K [LUsbK_DeviceGroup] %DeviceName%=LUsbK_Device, USB\VID_FFFF&PID_0001, USB\VID_FFFF&PID_0002, USB\VID_FFFF&PID_0003 Method #2 The driver install tool is capable of installing multiple .INFs at once as if they were one. You should only need to create an installer for each device then copy all of the .inf files into a single install folder. In both cases be sure and run "re-pack-files.cmd". This is a handy batch file that rebuilds the InstallDriver.exe for you. Regards, Travis On 8/6/2014 5:08 AM, Pradeepa Senanayake wrote: > Hello, > > I need to support multiple devices with different PID, VID values > through libusbK. Currently I am using the InfWizard v2.0 to generate > the inf files. > > But rather than having separate driver package per device, is there > any way to generate an INF file to install the driver to all the > devices? I can change the INF file but then the driver signing will > become a problem. > > Is there any tool for this? I have no experience in driver signing. > How does libusb sign the different INF files? > > Normally if we change INF file the driver needs to be signed again by > Microsoft. But here it looks like drivers are already signed. How to > achieve that? > > Best Regards, > Pradeepa Senanayake. > > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > > > _______________________________________________ > Libusb-win32-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk