wiki:windows/driver

Version 5 (modified by joergs, on Jun 28, 2012 at 5:53:29 PM) ( diff )

--

Windows Driver Installation

devcon.exe

Besides other things, like query for existing hardware and its drivers, devcon can be used, to install a hardware driver with by its INF-file.

See:

; install
devcon [/r] install INFfile HardwareID 

; update
devcon [/r] update INFfile HardwareID 

; update non interactive
devcon [/r] update INFfile HardwareID 

Parameters:

/r
Conditional reboot. Reboots the system after completing an operation when a reboot is required to make the change effective. By default, DevCon does not reboot the system.
INFfile
Specifies the full path and file name of the INF file for the device. If you omit the path, DevCon assumes that the file is in the current directory.
HardwareID
Specifies a hardware ID for the device. The specified hardware ID must exactly match the hardware ID of the device. Patterns are not valid. Do not type a single quote character (') to indicate a literal value.

When using install, the device is added twice. One time correctly, other with warning. Broken driver has exactly the hardware device given.

Therefore update (or even better updateni) should be used (see http://www.msfn.org/board/topic/17532-unattended-install-for-inf-drvers/):

devcon.exe update c:\tmp\HECI\HECI.inf "PCI\VEN_8086&DEV_29B4"
Note: See TracWiki for help on using the wiki.