windows-services - Windows 服务安装以回滚结束

标签 windows-services

当我尝试安装 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/

相关文章:

c++ - 为什么 GetServiceDisplayNameW() 和 GetServiceDisplayNameA() 在字符中返回不同的所需缓冲区大小?

windows - 每天运行任务计划程序两次,但不是每小时运行一次

c# - 没有端点监听 net.pipe

c# - 授予非管理员用户访问权限以启动/停止服务 Windows 7

c# - Windows 服务 : System. Reflection.ReflectionTypeLoadException 被抛出并出现以下错误消息:无法加载一个或多个重新

javascript - multer 文件上传不适用于 Node 窗口

azure - 替代在 Azure 云中运行窗口服务

c# - 为什么这个服务是 "not responding to the start or control request in a timely fashion"?

MySQL.数据 : "Object reference not set to an instance of an object" when trying to Connect

c# - 对于某些版本的 Windows,Windows 服务无法在用户使用 WTSQueryUserToken 登录时启动交互过程