The USB driver is permanently deleted.

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.