gpt4 book ai didi

windows-services - 安装 windows 服务错误 : cannot open service control manager on computer. 此操作可能需要其他权限

转载 作者:行者123 更新时间:2023-12-04 01:39:46 24 4
gpt4 key购买 nike

我有 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.

这是我的电脑,我不知道为什么它需要访问权限?我不知道如何给予正确的特权。

我也将我的 serviceProcessInstaller Account 属性更改为 LocalSystem 并尝试使用 LocalService 但它们都给了我同样的错误。

我应该怎么做才能给予正确的特权?

最佳答案

我终于找到了答案:

The solution: RUN COMMAND PROMPT AS ADMINISTRATOR

关于windows-services - 安装 windows 服务错误 : cannot open service control manager on computer. 此操作可能需要其他权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24649596/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com