
markiguy1.5524898962536243E12 asked a question.
cannot start Windows NT service: Error 1920
We’re providing a new Windows NT service with our product and I’m trying to configure my InstallShield 2010 project to load and start this service during installation. The service seems to load but then it won’t start. This is on Windows XP.
The dialog in the installer sequence says “Starting services” and seems to hang for a few minutes. Then an error dialog pops up saying: “Error 1920: Service Drobo RPC Winservice (DDService) failed to start. Verify that you have sufficient privileges to start system services.”
At this point, the Control Panel -> Administrative Tasks -> Services window shows my service as being loaded but not started yet. If I right-click on the service and select Start, after a minute I get the following error message: “Could not start the Drobo RPC Winservice on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion.”
The service’s LogOnAs is set to “Local System Account”.
If I cancel out of the installation, the service is unloaded successfully.
I’m running this as a user who is a member of the Administrators group.
The Local Security Policy (Control Panel -> Administrative Tasks -> Local Security Policy -> Security Settings -> Local Policies -> User Rights Assignment -> “Log on as a service”) contains the user login that I’m using for running the installer.
Our developers have coded the service executable so that I can load it from a DOS prompt using “DDService.exe -install” and start it using “DDService.exe -start”. I’ve included these options in the installer project services configuration.
The logfile from MSIEXEC.EXE says:
MSI (s) (F8:60) [18:52:41:752]: Executing op: ActionStart(Name=InstallServices,Description=Installing new services,Template=Service: [2])
Action 18:52:41: InstallServices. Installing new services
MSI (s) (F8:60) [18:52:41:752]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (F8:60) [18:52:41:752]: Executing op: ServiceInstall(Name=DDService,DisplayName=Drobo RPC Winservice,ImagePath="C:\Program Files\Drobo\Drobo Dashboard\Support\DDService.exe" -install,ServiceType=16,StartType=2,ErrorControl=1,,,,,Password=**********,Description=Drobo Dashboard Service)
MSI (s) (F8:60) [18:52:42:299]: Executing op: ActionStart(Name=StartServices,Description=Starting services,Template=Service: [1])
Action 18:52:42: StartServices. Starting services
MSI (s) (F8:60) [18:52:42:299]: Executing op: ProgressTotal(Total=2,Type=1,ByteEquivalent=1300000)
MSI (s) (F8:60) [18:52:42:299]: Executing op: ServiceControl(,Name=DDService,Action=1,Wait=1,StartupArguments=-start)
StartServices: Service: Drobo RPC Winservice
Error 1920.Service Drobo RPC Winservice (DDService) failed to start. Verify that you have sufficient privileges to start system services.
MSI (s) (F8:60) [18:57:22:645]: Product: Drobo Dashboard -- Error 1920.Service Drobo RPC Winservice (DDService) failed to start. Verify that you have sufficient privileges to start system services.
Are you sure you want to cancel?
Action ended 18:57:26: InstallFinalize. Return value 3.
Is there any way to find out more detail on why the ServiceControl function is failing?
Is there some way that we need to code our DDService executable so that ServiceControl will accept it?
I’ve scoured the web but can’t find any detail on ServiceControl.
I’ve searched the Acresso forums on anything related to error 1920 and found about a dozen postings but their suggestions didn't help me.
By the way, is there a way I can generate an MSIEXEC logfile directly when running my setup.exe ?
Thanks!