pbatard / libwdi

Windows Driver Installer library for USB devices
GNU General Public License v3.0
1.9k stars 466 forks source link

Driver Installation: FAILED (Resource already exists) #319

Closed Zoldrine97-V2 closed 8 months ago

Zoldrine97-V2 commented 8 months ago

Hi guys! Im having a problem trying to install the driver USB Serial (CDC). I need this driver to use Arduino-Pico board on the Arduino IDE. Without this driver i can't select the Raspberry PICO board to connect to my raspberry and send the code. I hope you guys can help me quickly!

OS used: Windows 11 Pro 64bit

The Log is here:

Using inf name: Unknown_USB_Device_(Device_Descriptor_Request_Failed).inf
Successfully extracted driver files.
Installing driver. Please wait...
libwdi:info [extract_binaries] Successfully extracted driver files to 'C:\Users\artur\usb_driver'
libwdi:info [wdi_prepare_driver] Successfully created 'C:\Users\artur\usb_driver\Unknown_USB_Device_(Device_Descriptor_Request_Failed).inf'
libwdi:info [wdi_prepare_driver] Creating and self-signing a .cat file...
libwdi:info [wdi_prepare_driver] Test signing is: Disabled
libwdi:debug [AddFileHash] 'unknown_usb_device_(device_descriptor_request_failed).inf': INF type
libwdi:info [ScanDirAndHash] added hash for 'C:\Users\artur\usb_driver\unknown_usb_device_(device_descriptor_request_failed).inf'
libwdi:info [CreateCat] Successfully created file 'C:\Users\artur\usb_driver\Unknown_USB_Device_(Device_Descriptor_Request_Failed).cat'
libwdi:info [RemoveCertFromStore] Deleted existing certificate 'CN=USB\VID_0000&PID_0002 (libwdi autogenerated)' from 'Root' store
libwdi:info [RemoveCertFromStore] Deleted existing certificate 'CN=USB\VID_0000&PID_0002 (libwdi autogenerated)' from 'TrustedPublisher' store
libwdi:debug [CreateSelfSignedCert] Set Enhanced Key Usage, URL and CPS
libwdi:debug [CreateSelfSignedCert] Created new key container
libwdi:debug [CreateSelfSignedCert] Generated new keypair...
libwdi:info [CreateSelfSignedCert] Created new self-signed certificate 'CN=USB\VID_0000&PID_0002 (libwdi autogenerated)'
libwdi:debug [SelfSignFile] Successfully created certificate 'CN=USB\VID_0000&PID_0002 (libwdi autogenerated)'
libwdi:info [SelfSignFile] Added certificate 'CN=USB\VID_0000&PID_0002 (libwdi autogenerated)' to 'Root' and 'TrustedPublisher' stores
libwdi:info [SelfSignFile] Successfully signed file 'C:\Users\artur\usb_driver\Unknown_USB_Device_(Device_Descriptor_Request_Failed).cat'
libwdi:info [SelfSignFile] Successfully deleted private key
libwdi:debug [wdi_install_driver] Using progress bar mode
libwdi:debug [installer process] got parameter Unknown_USB_Device_(Device_Descriptor_Request_Failed).inf
libwdi:debug [process_message] Got request for device_id
libwdi:debug [installer process] got device_id: 'USB\VID_0000&PID_0002\5&1739FE0B&0&5'
libwdi:debug [process_message] Got request for hardware_id
libwdi:debug [installer process] got hardware_id: 'USB\DEVICE_DESCRIPTOR_FAILURE'
libwdi:debug [installer process] got user_sid: 'S-1-5-21-914186359-593174019-907511556-1001'
libwdi:debug [installer process] using syslog 'C:\Windows\inf\setupapi.dev.log'
libwdi:debug [installer process] syslog reader thread started
libwdi:debug [installer process] successfully disabled the system restore point creation setting
libwdi:debug [process_message] Switching timeout to infinite
libwdi:debug [installer process] Installing driver for USB\DEVICE_DESCRIPTOR_FAILURE - please wait...
libwdi:debug [syslog] ion start 2024/03/23 11:06:19.870
libwdi:debug [syslog]       cmd: "C:\Users\artur\usb_driver\installer_x64.exe" "Unknown_USB_Device_(Device_Descriptor_Request_Failed).inf"
libwdi:debug [syslog] 000000)} 10:43:32.213
libwdi:debug [syslog] !    dvs:      Unable to find any matching devices.
libwdi:debug [syslog]      dvs: {DrvSetupInstallDriver - exit(00000000)}
libwdi:debug [syslog] <<<  Section end 2024/03/23 10:43:32.221
libwdi:debug [syslog] <<<  [Exit status: SUCCESS]
libwdi:debug [syslog] >> [Driver Install (DiShowUpdateDriver)]
libwdi:debug [syslog] >> Section start 2024/03/23 10:54:49.815
libwdi:debug [syslog]       cmd: "C:\Windows\system32\mmc.exe" C:\Windows\system32\devmgmt.msc
libwdi:debug [syslog]      ndv: {Update Driver Wizard}
libwdi:debug [syslog]      ndv: {Update Driver Wizard - exit(000004c7)}
libwdi:debug [syslog] <<<  Section end 2024/03/23 10:54:51.126
libwdi:debug [syslog] <<<  [Exit status: FAILURE(0x000004c7)]
libwdi:debug [syslog] >> [Device Install (UpdateDriverForPlugAndPlayDevices) - USB\DEVICE_DESCRIPTOR_FAILURE]
libwdi:debug [syslog] >> Section start 2024/03/23 11:04:07.863
libwdi:debug [syslog]       cmd: "C:\Users\artur\usb_driver\installer_x64.exe" "Unknown_USB_Device_(Device_Descriptor_Request_Failed).inf"
libwdi:debug [syslog] 216d6}
libwdi:debug [syslog]      dvs:                Driver Version - 06/02/2012,6.1.7600.16385
libwdi:debug [syslog]      dvs:      {Driver Setup Import Driver Package - exit (0x00000000)} 10:43:32.213
libwdi:debug [syslog] !    dvs:      Unable to find any matching devices.
libwdi:debug [syslog]      dvs: {DrvSetupInstallDriver - exit(00000000)}
libwdi:debug [syslog] <<<  Section end 2024/03/23 10:43:32.221
libwdi:debug [syslog] <<<  [Exit status: SUCCESS]
libwdi:debug [syslog] >> [Driver Install (DiShowUpdateDriver)]
libwdi:debug [syslog] >> Section start 2024/03/23 10:54:49.815
libwdi:debug [syslog]       cmd: "C:\Windows\system32\mmc.exe" C:\Windows\system32\devmgmt.msc
libwdi:debug [syslog]      ndv: {Update Driver Wizard}
libwdi:debug [syslog]      ndv: {Update Driver Wizard - exit(000004c7)}
libwdi:debug [syslog] <<<  Section end 2024/03/23 10:54:51.126
libwdi:debug [syslog] <<<  [Exit status: FAILURE(0x000004c7)]
libwdi:debug [syslog] >> [Device Install (UpdateDriverForPlugAndPlayDevices) - USB\DEVICE_DESCRIPTOR_FAILURE]
libwdi:debug [syslog] >> Section start 2024/03/23 11:04:07.863
libwdi:debug [syslog]       cmd: "C:\Users\artur\usb_driver\installer_x64.exe" "Unknown_USB_Device_(Device_Descriptor_Request_Failed).inf"
libwdi:debug [process_message] Switching timeout back to finite
libwdi:debug [installer process] A more recent driver was found (force option required).
libwdi:debug [process_message] Installer process completed
Driver Installation: FAILED (Resource already exists)

screenshot

pbatard commented 8 months ago

Well, first of all, the fact that your device is listed as Unknown_USB_Device_(Device_Descriptor_Request_Failed).inf means that there is an issue with your hardware as Windows was not able to obtain a USB Device Descriptor.

And then we see Installing driver for USB\DEVICE_DESCRIPTOR_FAILURE which, since it's not a proper VID+PID USB descriptor, is clearly not going to work.

Since Windows is clearly unable to properly communicate with your device, it will have a hard time installing a driver for it.

I would encourage you to go to Device Manager and figure out what is wrong with your device because, it its current state, there's absolutely nothing libwdi/Zadig can do to install a driver for it, when the problem is clearly higher up.