I would like to deploy a .inf based USB driver with my installer.
I guess the .inf needs to be placed in %SystemRoot%\\inf
, but there is also a .cat (WH
I would start by reading about SetupAPI and DIFx. The Windows Driver Kit includes samples of both, including a DIFx-based merge module and a DIFx-based WiX library. The source for the command-line devcon utility, which is based on SetupAPI, is also included in the WDK samples.
You could try asking the shell to install it for you:
%SystemRoot%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 YOUR_FILE.inf
But I'm 100% sure there's a better way...