pbatard / libwdi

Windows Driver Installer library for USB devices
GNU General Public License v3.0
1.89k stars 468 forks source link

Repacking and installing extracted driver #47

Closed diabolo38 closed 9 years ago

diabolo38 commented 9 years ago

When driver is extracted (extract but do no install) from GUI zadig_extract_no_install The folder contain 2 x86 and x64 installer exe but that want install anything when installer exe are started in command line we can see the error message

This application can not be run from the command line.
Please use your initial installer application if you want to install the driver. 

how could the full installer be repacked and driver installed from as a single exe ? What is the installer applacition ? dpinst ? Actualy i have customized the generated inf file to install for multiple interface of composite Having that capabilty in teh GUUI woudl be nice also option to store/save the installer exe for future use would be nice.

pbatard commented 9 years ago

The full installer application is Zadig. As the message indicates, the installer executables are not meant to be used from the command line. If you select Extract Files, which is an advanced feature, then I assume that you know how to install drivers by pointing to the .inf file (using the Device Manager or something else). If not, then you should not use Extract Files.

how could the full installer be repacked and driver installed from as a single exe ?

That single exe is Zadig. If you find it limited for your usage, then you will have to read the documentation from libwdi, which is the library used by Zadig for the driver installing, and learn to either recompile your own libwdi-based application or use one of the other samples, such as wdi-simple (which you will need to recompile yourself).

diabolo38 commented 9 years ago

Thanks for the inputs likely simple installer would do the works Unfortunately i was not able to quickly get the liwdi to build with libusbk
yet while trying i found that libusbk inf wizard was doing exactly what i need so will be using that.

pbatard commented 9 years ago

OK, I'll close this issue then.