Installing a Preloaded Driver, a Windows Update Driver, or a Driver on a Distribution Medium (Windows Server 2003, Windows XP, and Windows 2000)
Windows runs the Found New Hardware Wizard. The Found New Hardware Wizard prompts the user for a distribution medium and attempts to locate matching drivers on the medium. In this case, an AutoRun-enabled installation application on the distribution medium will not be run because the Found New Hardware Wizard disables AutoRun while the wizard is running. In addition to searching for matching drivers on the distribution medium, the Found New Hardware Wizard also searches for matching preloaded drivers.
On Windows XP SP2 and later, if the user has enabled Windows Update to locate matching drivers, the wizard also attempts to access Windows Update to download matching drivers. Otherwise, the wizard does not attempt to access Windows Update to download matching drivers.
In versions of Windows earlier than Windows XP SP2, the Found New Hardware Wizard automatically attempts to access Windows Update to download matching drivers.
The Found New Hardware Wizard installs the driver that is the best match from among those that the wizard found. If the Found New Hardware Wizard finds more than one driver that is a best match, the wizard prompts the user to select one of the matching drivers.
If your distribution medium contains an AutoRun-enabled installation application, this application starts automatically after the user inserts your distribution medium. In this situation, the application should first check for in-progress installations. Assuming the user inserts the medium after the device was plugged in and installed, and there are no other in-progress installations, the installation application can then perform the following:
If the system installed a driver that was not supplied on the distribution medium, the installation application can call UpdateDriverForPlugAndPlayDevices to reinstall the device by using a driver that is supplied on the distribution medium.
If the distribution medium contains device-specific applications, and a co-installer did not supply finish-install wizard pages or finish-install actions to install those applications, the device installation application can use Microsoft Installer to install them. (Microsoft Installer is described in the Windows SDK documentation.)