如果系统上没有可执行文件,如何卸载Windows服务?我无法运行,installutil -u因为系统上没有可执行文件.我仍然可以在服务控制台中看到该服务的条目.
这种状态的原因可能是因为msi包中的问题没有正确删除服务,但是一旦服务处于这种状态,我该如何解决?
上次我创建WAS配置文件和WASService然后我尝试配置并运行许多脚本以了解如何配置WAS,最后它崩溃所以我使用wasprofile删除此配置文件并忘记删除WASService.
现在我发现IBM Webphere Application Server服务显示在services.msc列表中,所以我尝试用WASService.exe-remove命令和windows SC命令删除它,但是我收到了消息
C:\Program Files\IBM\WebSphere\AppServer\bin>sc delete "IBMWAS61Service - DEV"
[SC] DeleteService FAILED 1072:
The specified service has been marked for deletion.
Run Code Online (Sandbox Code Playgroud) 当我尝试安装Windows服务时:
C:\ WINDOWS\Microsoft.NET\Framework64\v4.0.30319\installutil
我得到了,看起来是什么,一些成功的消息和一些失败的消息.部分向下:
An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: The specified service has been marked for deletion
Run Code Online (Sandbox Code Playgroud)
在末尾:
The Rollback phase completed successfully.
The transacted install has completed.
The installation failed, and the rollback has been performed.
Run Code Online (Sandbox Code Playgroud)
该服务在"服务"小程序中有一个条目,但它被标记为"已禁用".当我尝试将其更改为其他状态时,我收到"标记为删除"错误消息.
事件日志中没有消息.在installutil.exe创建的日志文件中没有任何用处(我相信它已写入当前工作目录).
我没有方向去做这件事.我该怎么办?