How do I deploy a .inf based driver?

前端 未结 2 732
无人及你
无人及你 2020-12-04 16:49

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

相关标签:
2条回答
  • 2020-12-04 17:29

    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.

    0 讨论(0)
  • 2020-12-04 17:31

    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...

    0 讨论(0)
提交回复
热议问题