Microsoft KB Archive/841567

= You receive a &quot;Cannot install this hardware&quot; or &quot;An error occurred during the installation&quot; error message when you try to install a PCI device =

Article ID: 841567

Article Last Modified on 6/30/2004

-

APPLIES TO


 * Microsoft Windows XP Professional

-





SYMPTOMS
When you try to install a new Peripheral Component Interconnect (PCI) device or a PCI device driver, you may receive one of the following error messages:

Cannot install this hardware. There was a problem installing this hardware.

An error occurred during the installation of the device. The data is invalid.

For example, you may receive one of these error messages if you try to install a PCI modem or a PCI modem driver.



CAUSE
This issue may occur when one of the following conditions is true:
 * A registry subkey does not have the default permissions set correctly. The default permissions may have been changed.
 * The installer for your device requires additional permissions that are more lenient than the default permissions.

Note The following list contains the relevant default permissions for subkeys in the registry:
 * Everyone: Read
 * System: Full Control



RESOLUTION
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Method 1: Restore the default settings to the registry subkey for your device
If you can determine which subkey is related to this issue, edit the registry to configure the correct settings on that subkey. For information about how to troubleshoot this issue and determine which subkey is affected by this issue, see the &quot;More Information&quot; section. To configure the correct settings on a specific subkey:  Log on to the computer by using an account that has administrative credentials. Click Start, click Run, type regedit in the Open box, and then click OK. Locate the following registry key:

 Right-click the subkey that is related to the device that is experiencing the symptom, and then click Permissions. Click Advanced, and then click the Permissions tab. Make sure that the following default permissions are configured: <ul> Everyone: Read</li> System: Full Control</li></ul> </li> Click to select the Replace permission entries on all child objects with entries shown here that apply to child objects check box, and then click Apply.</li> Click Yes, and then click OK two times.</li> Quit Registry Editor.</li> If the issue is not resolved, repeat this procedure, and grant full control permissions to the Everyone group on this subkey.</li></ol>

Method 2: Restore the default permissions for the PCI key and for its subkeys
<ol> Log on to the computer by using an account that has administrative credentials.</li> Click Start, click Run, type regedit in the Open box, and then click OK.</li> Locate the following registry key:

</li> Right-click PCI, and then click Permissions.</li> Make sure that the following default permissions are configured: <ul> Everyone: Read</li> System: Full Control</li></ul> </li> Click Advanced, click to select the Replace permission entries on all child objects with entries shown here that apply to child objects check box, and then click Apply.</li> Click Yes, and then click OK two times.</li> Quit Registry Editor.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
For advanced troubleshooting, configure the Setupapi.log file to use verbose logging, and then try to install the device driver.

Note Verbose logging increases the size of the Setupapi.log file. We recommend that you only use verbose logging while you troubleshoot problems. When you have finished, delete the LogLevel value to turn off verbose logging.

The log may record exactly which registry subkey is related to the symptom that this article describes. To configure verbose logging: <ol> <li>Log on to the computer by using an account that has administrative credentials.</li> <li>Click Start, click Run, type regedit in the Open box, and then click OK.</li> <li>Locate the following registry key:

</li> <li>Right-click Setup, point to New, and then click DWORD value.</li> <li>Type LogLevel to name the new value, and then press ENTER.</li> <li>Right-click the LogLevel value that you just created, click Modify, type 0xFFFF in the Value data box, and then click OK.</li> <li>Rename the existing Setupapi.log file to Setupapi.old.</li></ol>

Keywords: kbprb KB841567

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.