Repairing Index File Corruption
If the files used to index the driver store are missing or corrupt, new drivers cannot be added to the driver store. The inability to add new drivers or install new devices could therefore indicate problems with these index files. Possible causes of index file corruption are similar to causes of driver store corruption.
If index files become corrupt, restore them from your most recent system backup. The three index files for the driver store are Infpub.dat, Infstore.dat, and Drvindex.dat, and they are found under %SystemRoot%\Inf. You can also use System Restore to restore index files because these files are added to protection points, but this approach is generally not recommended because reverting to a previous restore point can affect other aspects of the system and its installed software. Restoring from backup is therefore preferred.
Troubleshooting Driver Signing Issues
If you see a Windows Security dialog box with a check box that says Windows Can't Verify The Publisher Of This Driver Software, you should verify the validity of the driver signature by checking the following:
- See whether the INF file contains the CatalogFile=FileName entry and whether the FileName matches the CAT file in the same directory.
- If the preceding step is successful, double-click the catalog file, view the signature, view the certificate, and check the Certification Path tab. Verify that the entire chain of certificates is trusted. If not, add them all to the trusted root CA store on the local computer. The last one should be added to the TrustedPublisher store.
If you see a Windows Security dialog box with a check box that says Always Trust Software From Some_name, install the certificate in the TrustedPublisher store on the local computer. Alternatively, you can select the check box and click Install, and the system will add the certificate automatically to the TrustedPublisher store. Note that you must use Mmc.exe to install the certificate, not the Certmgr.exe UI, because Certmgr.exe installs the certificate in the current user's store only.
If the package is signed but an unsigned dialog box still shows, determine whether any older unsigned versions of the driver are in the driver store. Open a command prompt and type pnputil.exe -e. To remove a driver from the driver store, type pnptuil -d OEMfilename.inf, where OEMFilename.inf is the OEM file name listed by pnputil -e for the driver package.
To check whether the catalog file actually contains the driver files, use the Signtool.exe utility from the WDK/Platform Software Development Kit (SDK) and type signtool verify /c catalogfilename filename.
Finally, to determine why your new latest freshly signed driver is losing to in-box drivers, do the following:
- Select the option to treat all signing as equal.
- Compare the date of your driver with that of the in-box driver.
- Check the version to see whether the dates are equal.
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