如何强制卸载Windows服务 [英] How to force uninstallation of windows service

查看:101
本文介绍了如何强制卸载Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用installUtil.exe安装了Windows服务.

I installed a windows service using installUtil.exe.

更新代码后,我再次使用installUtil.exe来安装服务,而无需先卸载原始版本.

After updating the code I used installUtil.exe again to install the service w/o uninstalling the original version first.

当我现在尝试卸载该服务时,installUtil.exe成功完成了卸载,但是该服务仍然出现.

When I now try to uninstall the service, installUtil.exe completes the uninstall successfully, but the service still appears.

如果我尝试更改其属性,则会收到消息服务已标记为删除".

If I try to change its properties, I receive the message 'service is marked for deletion'.

如何强制删除(最好不重新启动服务器)?

How can I force the deletion (preferrably w/o restarting the server)?

推荐答案

过去引起我注意的一件事是,如果您正在运行服务查看器,则将阻止服务被完全删除,因此请事先关闭

One thing that has caught me out in the past is that if you have the services viewer running then that prevents the services from being fully deleted, so close that beforehand

这篇关于如何强制卸载Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆