Installing a Driver through an AutoRun-Enabled Application on a Distribution Medium
The Found New Hardware Wizard prompts for a distribution medium if one of the following is true:
The wizard could not download matching Windows Update drivers or the wizard did not locate matching preloaded drivers.
The wizard downloaded matching Windows Update drivers or located matching preloaded drivers. However, one of the matching drivers has the INF InteractiveInstall directive set for the corresponding device. For information about the InteractiveInstall directive, see INF ControlFlags Section.
If the distribution media contains an Autorun.inf file, the Found New Hardware Wizard parses the file looking for an INF HardwareId directive that matches the device that is being installed. If the wizard finds a match, it invokes an AutoRun-enabled application specified by the open directive in the [autorun] section of the Autorun.inf file.
After invoking the application, the wizard waits for the application to complete and then terminates. The wizard does not determine whether the application installed a driver for the corresponding device. In this case, it is the responsibility of the application to install a driver for the device. However, if the application does not install a driver for a device, the wizard will be invoked again for the device the next time that the device is enumerated.
If the Autorun.inf file does not include an INF HardwareId directive that matches the device that is being installed, the Found New Hardware Wizard does not start the AutoRun-enabled application and attempts to complete the installation of a driver for the device as described in Installing a Driver after Prompting the User for a Distribution Medium.
For more information about AutoRun-enabled applications, see Creating an AutoRun-Enabled Application.