当我尝试安装 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
最后:
The Rollback phase completed successfully.
The transacted install has completed.
The installation failed, and the rollback has been performed.
该服务在服务小程序中有一个条目,但被标记为“已禁用”。当我尝试将其更改为其他状态时,收到“标记为删除”错误消息。
事件日志中没有消息。 installutil.exe 创建的日志文件中没有任何有用的内容(我相信它已写入当前工作目录)。
我对此没有任何方向。我该怎么办?
最佳答案
事实证明,如果服务小程序中突出显示该服务,安装可能会失败。最安全的方法是关闭服务小程序,安装服务,然后重新打开服务小程序。实在是太蠢了。
此外,请确保以管理员身份运行控制台。
关于windows-services - Windows 服务安装以回滚结束,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18499605/