Detailed Installation Process
The following steps offer a detailed description of the device installation process:
- Windows detects that a new device is present.
- The PnP service queries the device for identifiers.
- Windows checks the three driver store index files-Infpub.dat, Infstore.dat, and Drvindex.dat-found under %SystemRoot%\Inf to determine whether an in-box or previously staged driver package is available for the device. If the driver was previously staged, Windows can install the driver without requiring the user to provide administrative credentials. In other words, standard users can install devices that have drivers staged in the driver store.
- If no driver package for the device is found within the driver store, Windows recursively searches for a driver package for the device within the configured driver search locations, which in Windows 7 now includes Windows Update by default. If a suitable driver package is found, Windows confirms that the user has the permissions needed to install the device and verifies that the package has a trusted and valid digital signature. If the driver package satisfies these conditions, the package is then copied (staged) to the driver store.
- The PnP service copies the driver files from the driver store to their final locations on the system.
- The PnP service configures the registry so that Windows can use the new driver.
- The PnP service starts the driver and the device becomes functional.
For more information about the device driver installation process in Windows 7, see the section titled "Enhancements to the Device Installation Experience in Windows 7" later in this tutorial.
In this tutorial:
- Managing Devices and Services
- Understanding Device Installation and Management
- Device Enhancements in Windows 7
- Display Enhancements in Windows 7
- Understanding Device Installation
- Driver Store and Driver Packaging
- Driver Staging vs Installation
- Driver Staging and Installation Process
- Detailed Installation Process
- Managing Driver Packages
- Using PnPutil.exe
- Using Dism.exe
- Driver Signing
- Driver Ranking
- Installing and Using Devices
- Enhancements to the Device Installation Experience in Windows 7
- Scenario 1: Driver found in Driver Store
- Scenario 2: Driver found on Windows Update
- Scenario 3: Driver in Driver Store, But Better Driver on Windows Update
- Scenario 5: No Driver Can Be Found for the device
- Scenario 6: Vendor -supplied media is available
- Scenario 7: Additional Device Software is Available For Download from vendor
- Configuring Device Installation Settings
- Using the Devices And Printers Folder
- Understanding Device Stage
- Understanding the Device Experience Architecture
- Device Containers
- Device display object
- Device Metadata System
- Managing Device Installation Using Group Policy
- Managing Device Installation Behavior
- Managing Driver Installation Behavior
- Blocking Installation of Removable Devices
- Managing Device Redirection Behavior
- Troubleshooting Device Installation
- Using Windows Error Reporting
- Using the SetupAPI Log File
- Using Driver INF Files
- Using Device Manager Error Codes
- Using Driver Verifier
- Repairing Driver Store Corruption
- Repairing Index File Corruption
- Understanding Power Management
- Power Management Enhancements in Windows 7
- New Power Policies in Windows 7
- Configuring Power Management Settings
- Configuring Power Management Settings Using the Power Options Utility in Control Panel
- Configuring Power Management Settings Using Group Policy
- Configuring Power Management Settings Using the Powercfg Utility
- Understanding Services
- Service Enhancements in Windows 7
- Managing Services
- Managing Services Using Task Manager
- Managing Services Using the Sc.exe Command