窗口服务错误 [英] window service error

查看:66
本文介绍了窗口服务错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装窗口服务时出现此错误
服务已存在"
但是当我卸载它时,它又给出了错误.
请帮助

while installing window service i get this error
"service already exists"
but when i uninstall it,then again it gave error.
kindly help

推荐答案

运行此脚本(由Phil Wilson提供).

Run this script (Given by Phil Wilson).

Set servicelist= GetObject("winmgmts:").InstancesOf ("Win32_Service")
for each service in servicelist
    sname=lcase(service.name)
    If left(sname, 11) = "someservice" Then service.delete ' the internal name of your service. replace 11 by length of your service name
end if



这样可以解决您的问题.

我将使用参考文献和更多详细信息更新我的答案.

[更新]
在Google上搜索服务已经存在,Phil Wilson",您将获得更多详细信息.
[/Update]



This will solve your issue.

I will update my answer with references and more details.

[Update]
Search Google for "Service already exists, Phil Wilson" and you would get more details.
[/Update]


这篇关于窗口服务错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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