I have an FTDI USB-to-comm-port device. I've noticed if I have to reprogram the device using FTProg that it doesn't properly reinstall the COM port driver/settings, if the device serial number stays the same.
When I have the device installed (I chose mysernum as a serial number), the registry keys look like this:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{4d36e978-e325-11ce-bfc1-08002be10318}\##?#FTDIBUS#VID_0403+PID_6010+mysernumA#0000#{4d36e978-e325-11ce-bfc1-08002be10318}
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{4d36e978-e325-11ce-bfc1-08002be10318}\##?#FTDIBUS#VID_0403+PID_6010+mysernumB#0000#{4d36e978-e325-11ce-bfc1-08002be10318}
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{86e0d1e0-8089-11d0-9ce4-08003e301f73}\##?#FTDIBUS#VID_0403+PID_6010+mysernumA#0000#{86e0d1e0-8089-11d0-9ce4-08003e301f73}
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{86e0d1e0-8089-11d0-9ce4-08003e301f73}\##?#FTDIBUS#VID_0403+PID_6010+mysernumB#0000#{86e0d1e0-8089-11d0-9ce4-08003e301f73}
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\FTDIBUS\VID_0403+PID_6010+mysernumA
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\FTDIBUS\VID_0403+PID_6010+mysernumB
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\FTSER2K\Enum
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Serenum\Enum
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\usbccgp\Enum
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\FTSER2K\Enum
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Serenum\Enum
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\usbccgp\Enum
If I uninstall the comm ports using Device Manager, there's still stuff left in the registry, and if I rescan devices in Device Manager, it skips some of the installation steps and pulls the COM port setup from a cache somewhere. The remaining registry keys are
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{a5dcbf10-6530-11d2-901f-00c04fb951ed}\##?#USB#VID_0403&PID_6010#mysernum#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB\VID_0403&PID_6010\mysernum
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\usbccgp\Enum
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{a5dcbf10-6530-11d2-901f-00c04fb951ed}\##?#USB#VID_0403&PID_6010#mysernum#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_0403&PID_6010\mysernum
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\usbccgp\Enum
I need to purge the cache for a particular device serial number, but I don't feel comfortable doing brain surgery in RegEdit.
How can I do this?
