erc*_*can 11 windows-services installutil
我有Windows 8我有一个Windows应用程序wrtitten c#和visual studio 2013,并希望安装此应用程序.
我打开命令提示符写:
c:\..\instalutil.exe c:\projectfolder\filename.exe
Run Code Online (Sandbox Code Playgroud)
运行此代码后,它给我错误:
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.
Run Code Online (Sandbox Code Playgroud)
这是我的电脑,我不知道它为什么需要访问权限?我不知道如何给予正确的特权.
我也将我的sercviceProcessInstaller帐户属性更改为LocalSystem,并尝试使用LocalService,但它们都给了我相同的错误.
我应该怎样做才能给予正确的特权?
| 归档时间: |
|
| 查看次数: |
18042 次 |
| 最近记录: |