microsoft / Windows-driver-samples

This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.
Microsoft Public License
6.96k stars 4.94k forks source link

input/kbfiltr/Readme.MD is wrong #198

Open timrprobocom opened 6 years ago

timrprobocom commented 6 years ago

The manual install directions Readme.MD for input/kbfiltr include the totally misleading suggestion to use "devcon install" to install the filter. "Devcon install," despite the deceptively attractive name, cannot be used to associate an INF file with actual hardware. What "devcon install" does is create a brand new FAKE device with the hardware ID specified, and then use the INF to associate a driver with that fake device. Perhaps a more productive suggestion would be to use "pnputil -i -a" to install the driver package.

I would ordinarily do a pull request to submit a fix, but the philosophy here needs to be officially blessed.

jtanios commented 6 years ago

I'm having issues installing the driver using devcon as well. Were you able to successfully manually install it? If so, what's the command that you used?

timrprobocom commented 6 years ago

Did you read my comment? I explain why "devcon install" will not work, and suggest a better choice. You can also "Update Driver" from Device Manager.

jtanios commented 6 years ago

Thanks, @timrprobocom. I was able to install it by right-clicking the .inf file and "Install". But I'm curious to know the exact "pnputil" command that you used.