【发布时间】:2016-12-13 12:07:27
【问题描述】:
我已经获得了一些服务,我必须创建一个安装程序来安装这些窗口服务并在成功安装后启动这些服务。正在通过命令提示符安装服务。但是通过安装程序我收到了这个错误
服务“RedBoxReportSchedulerService”(RedBoxReportSchedulerService) 启动失败。核实 你有足够的权限来启动系统服务
我确实检查了权限并通过服务属性进行了更改,但没有成功。
以下是仅安装一项服务的代码。
<Component Id ="RedBoxReportSchedulerServiceInstall" Directory="REPORTSCHEDULER" Guid="*">
<File Id='ReportSchedulerServiceEXE' Name="RedBox Report Scheduler.exe" DiskId='1' Source="../Updatedir/Report Scheduler/ReportScheduler.exe" KeyPath='yes'/>
<ServiceInstall
Id="ReportScheduler_ServiceInstaller"
Type="ownProcess"
Name="RedBoxReportSchedulerService"
DisplayName="RedBox Report Scheduler"
Description="RedBox Report Scheduler Service"
Start="auto"
Account="LocalSystem"
Arguments=" /start RedBoxReportSchedulerService"
ErrorControl="normal">
<util:PermissionEx User="Everyone" ServicePauseContinue="yes" ServiceQueryStatus="yes" ServiceStart="yes" ServiceStop="yes" ServiceUserDefinedControl="yes" />
</ServiceInstall>
<ServiceControl Id="Start_ReportScheduler_Service" Start="install" Stop="both" Remove="both" Name="RedBoxReportSchedulerService" Wait="no" />
</Component>
谁能告诉我我做错了什么。我会很感激的。
【问题讨论】:
标签: visual-studio-2010 service wix windows-installer