gpt4 book ai didi

service - "Service failed to start - Verify that you have sufficient privileges to start system services"

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

当我尝试运行在WIX中创建的安装程序时,出现以下错误消息:

“服务'Report Generator Service'(报告生成器服务)无法启动。请验证您是否具有启动系统服务的足够特权”。

我已经在这里阅读过一些有关此内容的博客,它们的代码几乎相同,但是仍然不断出现此错误。奇怪的是,当我第一次使用以下几乎相同的代码创建此安装程序时,在安装过程中不会发生此错误。请帮助我迷路的人... :(

<File Id="ReportGenerator.exe"
Name="ReportGenerator.exe"
Source="..\ReportGenerator\bin\Release\ReportGenerator.exe"
KeyPath="yes" />
<ServiceInstall Id="ReportGeneratorServiceInstaller"
Name="ReportGeneratorInstaller"
DisplayName="Report Generator Service"
Type="ownProcess"
Start="auto"
ErrorControl="normal"
Description="Generate Reports"
Account="[SERVICEACCOUNT]"
Password="[SERVICEPASSWORD]" />
<ServiceControl Id="StartReportService"
Start="install"
Stop="both"
Remove="uninstall"
Name="ReportGeneratorInstaller"
Wait="yes" />

最佳答案

如果您的服务依赖于安装在GAC中的程序集,则将无法使用ServiceControl来启动它。在提交安装之前,GAC的程序集不存在,这对于ServiceControl来说太晚了。

关于service - "Service failed to start - Verify that you have sufficient privileges to start system services",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5697364/

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