Page 1 of 1

Uninstalling LibUSB-Win32?

Posted: Tue Aug 05, 2008 6:40 pm
by Michael_E
Hi!

After I connected both USBasp and uDMX (they are both using the same VID 16c0 / PID 05dc) to my Win-XP PC, avrdude does not find the USBasp anymore.

So I "uninstalled" both drivers in device manager and re-installed USBasp. It all looks fine in device manager, usbview and testlibusb-win, but avrdude still does not find it.

The registry still has several entries for libusb, USBasp and uDMX. Trying to delete these entries, even with admin rights, I just get errors ("...kann nicht gelöscht werden: Fehler beim Löschen des Schlüssels"). Is there a way to _completely_ remove libusb, so I can set it up from scratch?

Thanks a lot,

bye,
Michael.

Posted: Tue Aug 05, 2008 9:09 pm
by Grendel
Rather delete the devices. Search the registry for the pid/vid pairs.

Posted: Tue Aug 05, 2008 9:58 pm
by Michael_E
Hi,

Grendel wrote:Rather delete the devices.

Using regedit, I guess, as the device manager only shows the devices it recognized as connected.


Grendel wrote:Search the registry for the pid/vid pairs.

I found and deleted several keys as:
[HKLM\SYSTEM\CurrentControlSet\Control\DeviceClasses\{a5dcb...}\##?#USB#Vid_16c0&Pid_05dc#5&2a420e43&0&1#{a5dcb...}]

But (also after reboot) regedit can't delete this key:
[HKLM\SYSTEM\CurrentControlSet\Enum\USB\Vid_16c0&Pid_05dc]

its subkeys:
\5&2a420e43&0&1
\5&2a420e43&0&2
\6&29f29717&0&2
\6&29f29717&0&3

or their values:
"DeviceDesc"="USBasp"
"LocationInformation"="USBasp"
"Capabilities"=dword:00000084
"UINumber"=dword:00000000
"HardwareID"=hex(7):55,00,53,00,42 ...
"CompatibleIDs"=hex(7):55,00,53,00,42, ...
"ClassGUID"="{EB781AAF-9C70-4523-A5DF-642A87ECA567}"
"Class"="LibUsbDevices"
"Driver"="{EB781AAF-9C70-4523-A5DF-642A87ECA567}\\0000"
"Mfg"="www.fischl.de"
"Service"="libusb0"
"ConfigFlags"=dword:00000000

Bye,
Michael.

Re: Uninstalling LibUSB-Win32?

Posted: Tue Aug 05, 2008 11:43 pm
by Michael_E
Oh, XP is _so_ funny!

As admin, you don't have the right to delete this key - but for sure, you have the right to give yourself the right to delete it!

And naturally, regedit does not just tell you that you don't have the right to delete this key, instead of this it gives you the very most useful and exact information ever: "key could not be deleted: error deleting key."

Great!

Bye,
Michael.

Posted: Wed Aug 06, 2008 2:10 am
by Grendel
Try plugging the device(s) back in, go to the device manager and "uninstall" them there.