Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

When I tried to run the installer that I created in WIX, the error message below occured:

"Service 'Report Generator Service' (Report Generator Service) failed to start. Verify that you have sufficient privileges to start system services".

I already read some blogs here about this by my codes are almost identical but still this error keeps popping out. The weird thing about this is that when I first created this installer with almost the same code as below, this error is not happening during installation. Please help me guys I'm lost... :(

<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" />
like image 580
furanzu Avatar asked Apr 18 '11 00:04

furanzu


1 Answers

If your service relies on assemblies being installed into the GAC, you won't be able to start it using ServiceControl. GAC'd assemblies aren't present until the install is committed, which is too late for ServiceControl to work.

like image 114
Bob Arnson Avatar answered Sep 20 '22 14:09

Bob Arnson