窗口服务错误

窗口服务错误

问题描述:

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

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]