Plug and Play/Driver Install API call?

kzrssk

Member
Nov 13, 2005
111
0
0
Hey all,

Is there some sort of call one can make to Windows to initiate the driver installation process that it usually does at boot-up if it finds new devices? I currently have a script (that I can incorporate into a different vb.net application if need be) that sets driver paths after Sysprep based on make and model of the system. The problem is this script fires off after that plug and play process, so the devices don't have drivers until next boot (and that's only if the Do Not Prompt Me Anymore checkbox is unchecked). I would like to call that same process right after the script/during the app so that devices get drivers installed for them before any other post-sysprep tasks take place.

Thanks all!
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
Why are you using different paths for each make and model. Just put all device drivers for all make and models in folders and put all of the folder paths in the OemPnPDriversPath setting of your sysprep.inf file.

Windows will find the drivers it needs and match the hardware by itself.

http://support.microsoft.com/kb/314479
 

kzrssk

Member
Nov 13, 2005
111
0
0
That's how it's set up now, and it's caused a couple problems, pulling drivers from the wrong folder on some models and not working.