Add Dependency on Windows services. - 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!

ramit
Posts: 90
Joined: Thu Dec 18, 2008 11:51 am

Add Dependency on Windows services.

Hi,

In my installer I have windows services. I want to add one dependency on these services.
Wherever my service will start I want to check that SQL Server is started. If not I will not start the services.

Is there any way, please help.

Thanks
Amit
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Add Dependency on Windows services.

Hello,

You can use our detect process custom action to determine if the SQL Server is running.
Install your service without starting it.
Use the sc Service Control utility as a custom action to start your service depending on whether SQL Server is running or not.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”