HostsTools / Windows

Hosts tool for googlehosts/hosts
https://github.com/googlehosts/hosts
GNU General Public License v3.0
906 stars 166 forks source link

无法卸载服务 #58

Open shikkoku opened 7 years ago

shikkoku commented 7 years ago

运行Choose后选3

显示 `Fatal Error: OpenService() Error in Uninstall service. Is service exist? (GetLastError():2) Please contact the application's support team for more information.

[Debug Message] C:\WINDOWS\hoststools.exe D:\Downloads\Tools\HostsTool\tool.exe

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.`

之前使用11选项安装了启动项,未安装服务。但是没有相应的删除启动项的选项?

ghost commented 7 years ago

呃 未安装服务的话 那程式还会继续运行吗

shikkoku commented 7 years ago

呃 未安装服务的话 那程式还会继续运行吗 服务和启动项是两个程序。

ghost commented 7 years ago

(感觉您是点击了隐藏启动方式是吗...我那个没做卸载

tilv37 commented 7 years ago

有没有手工卸载方法呢?

ghost commented 7 years ago

https://github.com/HostsTools/Windows/blob/master/tool.cpp#L347 只要删除对应的注册表键值就好了 找一下 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run 下面 或者全注册表搜索 hoststool-windows