Driver Staging and Installation Process
The driver staging and installation process alternates between user mode and kernel mode as follows:
- The files in the driver package are copied to a temporary secure location within the user profile as Configuration Management Interface (CMI) objects. The driver store then validates trust for the driver package under the LocalSystem context.
- If verification succeeds, the driver package is copied from the temporary location to
the driver store under the LocalSystem context. After the driver package has been
added to the store, its INF file is parsed to determine the names and locations of the
required driver files. This information is added to the index files for the store. The
driver package in the temporary location is then deleted.
In addition, during the staging process, a system restore point is created to allow for quick rollback to an earlier state in case installing the driver destabilizes the system.
(You can use Group Policy to disable the creation of automatic restore points when drivers are updated or installed. See the section titled "Managing Device Installation Behavior" later in this tutorial for more tutorial.) - If the driver package needs updating later (for example, if a new version of the driver is released on Windows Update), this is initiated under the User context but takes place under the System context. (This step is optional.)
- When the PnP service detects the presence of the device, the driver is installed from
the driver store under the LocalSystem context. Installation takes place silently and
transparently from the user's perspective because no additional prompts for files are needed.
Note that a Found New Hardware message balloon may appear above the notification area as the device is being installed, and a second balloon notifies the user after the device is installed. However, you can use Group Policy to disable these notifications. See the section titled "Managing Device Installation Behavior" later in this tutorial for more information. - If the vendor-supplied driver requires the installation of support software (for example, a control center for a display driver) in addition to the core device driver, a Finish Install page is displayed and runs under the User context (requires local administrative privileges or elevation) to allow the user to install the required support software for the device. (This step is optional.)
For more information about driver staging, see the section titled "Managing Driver Packages" 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