aldebaran
Posts: 23
Joined: Wed Dec 05, 2007 4:04 pm
Location: Hannover, Germany
Contact: Website

Setup for windows service with special account

Using Advanced Installer 7.2.1, I'm trying to build a setup for a windows service, running the service under a different account than the default. However on install (checking there's not yet a service installed using the same name) I get the error message

"Error 1920. Service 'MyService.exe' (MyService.exe) failed to start. Verify that you have sufficient privileges to start system services."

As I made sure the configured user has the rights to be used as a service account, I did not use a custom action invoking "ntrights" to do so. As a matter of fact I tried once but got the same error (as expected). Installing the service (for this particular user) invoking "instsrv" (on a Windows Xp machine) did install the service successfully.

Are there any known problems reagarding Advanced Installer 7.2.1 and the installation of windows services under a non-default account. Looking at the advanced installer history I was not able to find any related bug fixed and I'm reluctant to install a new version of advanced installer just to try out.

Any thoughts?
aldebaran
Posts: 23
Joined: Wed Dec 05, 2007 4:04 pm
Location: Hannover, Germany
Contact: Website

Re: Setup for windows service with special account (solved)

After some further investigations, I've got things (partially) working: It had nothing to do with Advanced Installer.

What did help was unchecking "Event On Install 'Start'". This probably has to do with my service depending on certain assemblies living in the GAC (cf. first paragraph of http://msdn.microsoft.com/en-us/library ... s.85).aspx). For now, it's okay for me to request the user to start the service manually after installation. I did not try out a custom action after the "InstallFinalize" as the mentioned article points out.

In case other people benefit from this follow-up, I kindly ask you to leave a little note here, so in case the analysis turns out to be right, the caphyon folks get a chance to improve the documentation.

Return to “Common Problems”