【发布时间】:2014-08-30 05:42:27
【问题描述】:
我有 Windows 8 我有一个用 c# 和 Visual Studio 2013 编写的 Windows 应用程序,我想安装这个应用程序。
我打开命令提示符写:
c:\..\instalutil.exe c:\projectfolder\filename.exe
在我运行这段代码后,它给了我错误:
An exception occured during the Install phase.
System.InvalidOperationException: Cannot open Service Control Manager on computer '.'. This operation might require other privileges.
The inner exception System.ComponentModel.Win32Exception was thrown with the following error message: Access is denied.
这是我的电脑,我不知道它为什么需要访问权限?而且我不知道如何给予正确的特权。
我也将我的 sercviceProcessInstaller Account 属性更改为 LocalSystem 并尝试使用 LocalService 但它们都给了我同样的错误。
我应该怎么做才能给予正确的特权?
【问题讨论】:
标签: windows-services installutil