I need to have a driver installed in my customers' computers. Unfortunately, the only way to do this right now is having Windows show its "Hardware Update Wizard" when the device is plugged in, and then have the user do the following:

* select "No, not this time",
* select "Install from a specific location (Advanced)",
* check or uncheck appropriate checkboxes and select the folder that contains the drivers

All of which is slow and unfriendly for a non technically savvy user. For the people who must install the device in many computers, it's a repetitive and annoying process too.

So, I'm trying to write a very simple program that will prompt the user to plug in the device. Then the program will do the same steps above automatically. My questions:

* I wonder if there is a Windows API that looks for drivers in a folder, since that's what the Wizard does.
* I've just discovered the function `DriverPackageInstall`. Would passing the .inf file as a parameter do what I want? (I'll be writing code to test this in the meanwhile, just give me some time to download the Windows Driver Kit and set up a project...).
* Any other suggestions?