安装失败,并且已执行回滚。 [英] The installation failed, and the rollback has been performed.

查看:481
本文介绍了安装失败,并且已执行回滚。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在尝试在我的系统上安装Windows服务但它返回错误



hi all,

I am trying to install Windows Service on my system but it's returning an error

C:\TMS>InstallUtil Services.exe -i
Microsoft (R) .NET Framework Installation utility Version 4.0.30319.1
Copyright (c) Microsoft Corporation.  All rights reserved.


Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\TMS\Services.exe assembly's
 progress.
The file is located at C:\TMS\Services.InstallLog.
Installing assembly 'C:\TMS\Services.exe'.
Affected parameters are:
   logtoconsole =
   logfile = C:\TMS\Services.InstallLog
   assemblypath = C:\TMS\Services.exe
Installing service ScheduleService...
Creating EventLog source ScheduleService in log Application...

An exception occurred during the Install phase.
System.InvalidOperationException: Cannot open Service Control Manager on compute
r '.'. This operation might require other privileges.
The inner exception System.ComponentModel.Win32Exception was thrown with the fol
lowing error message: Access is denied.

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\TMS\Services.exe assembly's
 progress.
The file is located at C:\TMS\Services.InstallLog.
Rolling back assembly 'C:\TMS\Services.exe'.
Affected parameters are:
   logtoconsole =
   logfile = C:\TMS\Services.InstallLog
   assemblypath = C:\TMS\Services.exe
Restoring event log to previous state for source ScheduleService.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.





哪里出错了?



谢谢。



where I went wrong?

thanks.

推荐答案

这不是一个代码问题,而是一个技术问题,所以你可以尝试其他论坛。但是,错误很明显,它写道:无法在计算机上打开服务控制管理器

r'。'。此操作可能需要其他权限。您有权限问题。
This is not a code question but more of a technical question so you may try other forums. However, the error is pretty clear, it reads, "Cannot open Service Control Manager on compute
r '.'. This operation might require other privileges." You have a permissions issue.


此问题是由于安全性,更好地在RUN AS ADMINISTRATOR中打开 VS 2012的开发人员命令提示并安装您的服务,它修复了肯定是你的问题。
This Problem is due to Security, Better open Developer Command prompt for VS 2012 in RUN AS ADMINISTRATOR and install your Service, it fix your problem surely.


这篇关于安装失败,并且已执行回滚。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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