Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security issue: Service not removable. Task: Provide uninstall instructions. #7

Closed
diqidoq opened this issue Oct 23, 2019 · 3 comments

Comments

@diqidoq
Copy link

diqidoq commented Oct 23, 2019

It would be helpful to provide uninstall instructions on the project's README or uninstall functionality in code since this service is registered but not removable. So I thought it would be useful to post this recommendation as a # TODO ?

Examples:

Testing wsl2host.exe stop will cause failed to stop wsl2host: could not access service: The specified service does not exist as an installed service.

Testing wsl2host.exe remove will cause failed to remove wsl2host: service wsl2host is not installed

But trying to install again wsl2host.exe remove will cause failed to install wsl2host: SetupEventLogSource() failed: SYSTEM\CurrentControlSet\Services\EventLog\Application\wsl2host registry key already exists

What means the service is still on the system but cannot be removed nor reinstalled.

@diqidoq diqidoq changed the title Provide uninstall instructions. Security issue: Service not removable. Task: Provide uninstall instructions. Oct 24, 2019
@diqidoq
Copy link
Author

diqidoq commented Oct 24, 2019

And since microsoft/WSL#4150 still recommends this as a workaround I think it is mandatory to fix this?

@shayne
Copy link
Owner

shayne commented Oct 31, 2019

Did you upgrade your Windows Insider build? I've experienced the upgrade process removes the wsl2host service, but not cleanly. If you delete that registry key and reinstall it'll work.

I'll work on a solution so at least reinstalling it is straightforward.

@shayne
Copy link
Owner

shayne commented Oct 31, 2019

https://github.com/shayne/go-wsl2-host/releases/tag/v0.2.2

v0.2.2 addresses the remove issue and I've added uninstall instructions to the project's README.

@shayne shayne closed this as completed Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants