我有Windows 8 我有一个Windows应用程序与c#和wrtitten与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帐户属性更改为LocalSystem,并尝试使用LocalService,但他们都给我同样的错误。
我该怎么做才能赋予正确的特权?
是的,开发人员命令以管理员身份提示VS2013,它的工作原理。 –
即使UAC关闭,我不得不这样做。谢谢。 :) –
谢谢,这是非常有益的! –