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!

Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

services not starting

Hi..
I am having an issue that my services are not starting after installation. As per my understanding, the issue occurs when the installation is not done as administrator. Is there any option I can set for the service installation to happen as 'Run as Administrator'. Can someone please help me out. I am stuck with this issue since many days.
I have added the services exe to 'Resources > Services' tab. And for the same exe I have added 'Services to Install', 'Control Operations' and 'Configure Operations'
Thanks in advance,
Jis.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: services not starting

Hi Jis,

You should install the service outside the installer first and make sure it works. After assuring the expected configuration is correct you can implement it in the installer project.
Also, here's How do I install a service for a custom user? article with further related guidance.

Happy holidays !
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: services not starting

Hi Mihai,
Thank you for the propmt reply.
Yes, I was successfully able to install and start the services manually using 'installutil.exe' and also using 'sc.exe'. Both the cases I entered the cmd as Administrator.

And, searching through many sites and forum I could find somewer about WiX. Is it a solution for the service installation?
Regards,
Jis.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: services not starting

You're welcome, have you tried implementing the article from my last post?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: services not starting

Yes, I tried. But it didn't install.
Thanks,
Jis.
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: services not starting

hi,
I was able to understand that, I should be able to install the services via vbscript in which, the vbscript should open the cmd as administrator and then execute the command to install the service using sc.exe. Command - sc create servicename binPath=”path and name of service.exe” .
But here also I am facing an issue- opening the cmd as admin and executing the command are in 2 different cmds.
Can anyone who is good in vbscripting help me here.
Thanks in advance,
Jis.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: services not starting

Hello Jis,

If the predefined support and setting don't work you can try using a Launch File custom action which executes the SC.EXE command line.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: services not starting

Hi,

Thanks for all the help. I was able to install and start the services successfully.
Here is what I did: Created a batch file to install the service using sc create command. Gave the command to start the services. No need to give administrative rights.
After saving the bat file, add the bat file to the Files and Folders list. In custom action create a launch file action and call the bat file there.
Once the setup is created, run using 'Run as Admin'.

Thanks,
Jis

Return to “Building Installers”