Posts Tagged ‘driver’

Driver installation issues

March 12, 2009

I ran into an issue installing my driver on a second PC that installed fine on two others. Most of the install seemed to go fine but at the end the install failed. Here’s the error I got:

This device is not configured correctly (code 1).

The official Microsoft documentation on the errors is seriously useless. However, I had much more luck on OSR. This thread informed me that I could get further details on what caused the failure by looking at the file C:\WINDOWS\setupapi.log (C:\WINDOWS\inf\setupapi.dev.log on Vista). Indeed, there is a nice log of the setup process that was followed for the install and the error that eventually killed it. The error I was having was something like this:

#E279 Add Service: Failed to create service “somename”. Error 1078: The name is already in use as either a service name or a service display name.

It pointed to the service in my inf file that was failing to install. With some pointers from this thread I realized what the problem was. I had gone through a full renaming of my driver and had installed the previous version on the failing machine. In the inf the service to be installed had a different key, but was using the same description. To get the install working again I removed all entries for both driver names from HKLM\SYSTEM\* in the registry, then rebooted to updated Windows copy of the driver database.  Installed again and success!

Advertisements