Unable to start service - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

trims30
Posts: 15
Joined: Sun Jan 17, 2010 8:04 pm

Unable to start service

I have an EXE that is written to run as a service.
I am able to use SC to Create, Start and Delete the Service with no difficulty.
I created a MSI with Advanced Installer and used the "Services to Install" and "Control Operations" functions to install my EXE as a Service and start it.

Installer runs without error and progress shows "Installing Service" and Registering Service.

At completion I see my files installed in proper place but in looking at installed services Win7 (Admin tools/Services) I do not see my service listed.

Running SC Delete "Service Name" shows that the service was not there.

What could be the problem? my AIP is at http://www.trims.com/lee/netserverinstall.aip

Also, problem occurs on Win7 with UAC On (As Admin) as well as Win XP as Admin.

I'd appreciate your comments on this.

Thanks,

Lee Bornstein
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Unable to start service

Hi Lee,

After looking into your project, I cannot find anything obvious that would cause this behavior. Since your service works fine on other machines except Windows 7 and Windows XP, can you please send it to us at support at advancedinstaller dot com so we can replicate the behavior?

Meanwhile, since using the SC utility everything works as expected, you can use a "Launch File or Open URL" custom action to launch the command line that installs the service:
http://www.advancedinstaller.com/user-g ... -file.html
You should set this custom action with "Deferred, with no impersonation".

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”