disable online driver search on windows 7 programatically

和自甴很熟 提交于 2019-12-24 10:13:42

问题


I am working on a program that requires to install a driver for Plug and Play. My issue is that the first time the device plugs into, by default, windows 7 32-bit automatically search online for drivers that better match to device. As i observe, it takes too long (15m) to correctly install the driver.

How can i turn off the automatic search on windows 7?

Thank you for any useful information.


回答1:


Apparently you do this through GPO, as described here: http://www.verboon.info/index.php/2010/12/windows-7-device-installation-without-administrative-rights/

Look for "Prevent Clients from searching for drivers on Windows Update" on this page.

Read up on applying GPO programatically and you should probably be able to get the job done. However, mind that you'd be changing the policy for the whole system, not just installation of this device.




回答2:


If you install a driver package for your driver before you insert it, Windows will not search online.

If you really want to disable online serach on your machine - take a look here.



来源:https://stackoverflow.com/questions/6188852/disable-online-driver-search-on-windows-7-programatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!