I recently developed a USB custom device and encountered the following problems. I 'd like to write them out and share them with you.
During the development of USB devices, you often need to change the name or PID and vid of the USB devices, especially for custom USB devices, there will be a problem:
A USB device is designed, which can be inserted into a computer and installed with a driver for trial.
Later, the PID and vid of the USB device were modified, and then the computer was plugged in to display the original device name.
Right-click the Device Manager to delete the driver and re-insert the computer. The original USB device name is displayed. However, you need to re-install the driver this time, but the device name remains unchanged.
I have also tried: Go to HKLM \ SYSTEM \ CurrentControlSet \ Enum \ USB \ hardware_id in the Registry to delete this ID(Right-click to delete the ID and change the permission to full control)
Select full control to delete it.
However, after the deletion, the above problem is still not solved. After the computer is plugged in, the original device name is displayed.
So how can we completely delete the USB information, just like this device has not been plugged into this computer ??
Solution:
Step 1: select the device driver in the Device Manager and right-click to delete the driver.
Step 2: Remember the displayed device name. For example, my name is from leousb2 to c: \ windows \ inf to find the newly created device. INF file, but the problem is that the INF file created by the system is not created by name, it seems to be created by the system according to the number. Therefore, you can use the search function to find all files that contain leousb2. Wait for a while. If you have installed the file successfully before, you can find one or more files (generally
One, unless the drivers with different IDs have been installed Multiple times before), select to delete them together, and delete the corresponding. PNF file.
Step 3: Find the corresponding leousb2.sys file in the c: \ windows \ system32 \ DRIVERS directory.
Delete it.
Now you can search for your USB driver again, and it will not appear again.
This is what we found out. It should not be the best method. The hero has a good method. Please kindly advise. Thank you!