Menu

#65 Command line install of .inf file

v1.0_(example)
closed
nobody
None
1
2013-02-19
2012-10-17
James
No

Hi,

Having used inf-wizard to create an .inf file, is there a way I can use the inf file to install the driver from the command line, rather than using the inf-wizard 'Install now...' button?

I tried using something of the form:
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 path-to-inf\infname.inf
but without success.

The reason I would like to do this is that I am writing a batch file to install some software for my students, part of which involves installing the libusb-win32 driver for a specific type of device. I want it to be as turn-key as possible, so I had hoped to avoid them having to run inf-wizard themselves, and just to distribute and install my inf-wizard-created inf file.

Apologies if I've missed something obvious, but any help would be much appreciated.
Many thanks
James

Discussion

  • Travis Robinson

    Travis Robinson - 2012-10-18

    download the libusbK bin package:
    http://sourceforge.net/projects/libusbk/files/libusbK-beta/3.0.5.16/libusbK-3.0.5.16-bin.7z/download

    Inside you will find the libusbK inf wizard. It will create a self-contained client installer .exe (InstallDriver.exe). By, default client installers displays a very simple wizard where the users only has to click next. If desired, they can be further customized to run silent. See the instructions in the generated client installer source directory for more details. Make sure you have 7zip in your path and that you run re-pack-files.cmd after you done customizing the client installer source; this regenerates InstallDriver.exe.

    Note: The libusbK inf wizard creates driver packages for libusbK, WInUSB, and libusb-win32 so make sure you select the libusb-win32 driver on the first wizard page.

    Regards,
    Travis

     
  • Xiaofan Chen

    Xiaofan Chen - 2013-02-19

    Close this ticket.

     
  • Xiaofan Chen

    Xiaofan Chen - 2013-02-19
    • status: open --> closed