cezanne / usbip-win

USB/IP for Windows
GNU General Public License v3.0
1.92k stars 346 forks source link

Uninstall driver command fails on Windows 11 #285

Open bardgames opened 2 years ago

bardgames commented 2 years ago

Hello,

I am attempting to follow the README.md installation instructions and have encountered the following issue:

I have installed the certificate to both CAs, enabled secure signing by turning on Test Mode via bcdedit.exe, and successfully attached 3 USB devices from my Raspberry Pi over WiFi to my Windows 11 Home x64 laptop (Build 22000.co_release.210604-1628)

However, when I run the usbip.exe uninstall command, the prompt just hangs. If I close out and reboot my PC, then try again, it does the same thing.

Is it possible to permanently install the driver in order to prevent leaving test signing on, or does it need to install itself each time a device attaches and disconnects?

Sok00 commented 2 years ago

Run PowerShell or CMD as an Administrator to install or uninstall driver.

bardgames commented 2 years ago

I run all of my commands through the PowerShell admin. command prompt from within the directory itself.

Could there be another permissions issue in play that I'm missing? I've moved the folder to C:\Drivers.

On Fri, Nov 12, 2021, 3:17 AM Sok00 @.***> wrote:

Run PowerShell or CMD as an Administrator to install or uninstall driver.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cezanne/usbip-win/issues/285#issuecomment-966909193, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVQYUZ765LJTBPLDJBWT4NLULTERPANCNFSM5HY3U3EQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

e-t-l commented 2 years ago

I've moved the folder to C:\Drivers.

Just guessing here, but if it's like most programs, the installation path matters. e.g. you wouldn't move an installation folder from Program Files onto your Desktop and expect the app to still work.

In other words, have you tried moving the folder back to the exact location it was when you originally installed it, and then try uninstalling? The uninstallation process may be looking for "usbip.exe" in the wrong location...