Windows 服务安装以回滚结束 [英] Windows Service Install Ends in Rollback

查看:30
本文介绍了Windows 服务安装以回滚结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装 Windows 服务时:

When I try to install a Windows service:

c:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil

c:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil

我明白了一些成功消息和一些失败消息.部分下降:

I get, what looks to be, some success messages and some failure messages. Part way down:

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.

该服务在服务小程序中有一个条目,但它被标记为已禁用".当我尝试将其更改为其他状态时,我收到一条已标记为删除"的错误消息.

The service is given an entry in the Services applet, but it is marked as "Disabled". When I attempt to change it to another state, I get a "marked for deletion" error message.

事件日志中没有消息.installutil.exe 创建的日志文件中没有任何用处(我相信它已写入当前工作目录).

There are no messages in the Event Log. There is nothing useful in the log file created by installutil.exe (I believe it's written to the current working directory).

我没有方向.我该怎么办?

I have no direction to go with this. What do I do?

推荐答案

事实证明,如果该服务在服务"小程序中突出显示,则安装可能会或可能会失败.最安全的做法是关闭服务小程序,安装服务,然后重新打开服务小程序.真的很蠢.

It turns out that the install might, or probably will, fail if that service is highlighted in the Services applet. It's safest to just close the Services applet, install the service, and then re-open the Services applet. It's really stupid.

另外,请确保以管理员身份运行控制台.

Also, make sure to run the console as admin.

这篇关于Windows 服务安装以回滚结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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