02-20-2009 09:41 AM
During production test, we test usb products.
Problem is, everytime we connect another UUT, it creates another entry in the registry.
I believe it is possible to use the windows setupapi to uninstall devices, and so clear the
registry in the correct way.
Anyone ever used this or have any advice?
Thanks
02-23-2009 08:34 AM
Hi Morngoose,
Good afternoon and I hope your well today.
The usb device information is stored under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB - you can then delete these - see this external link titled
Removing USB Windows Registry Keys.
Another method would be just to make a backup of the registry and then replace it at the end of the test.
I would also like to suggest you could take a read of the following knowledgebase, What Registry Changes Result from Installing or Uninstalling Hardware or Software? It explains you can do a check on what files change during an installation, and you can just delete these at the end.
The steps you need to take are something like,