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!

Geron Keller
Posts: 6
Joined: Tue Aug 12, 2014 3:06 pm

Automaticly restart a Service

Hey,

I have a installer with a service in it.
The service runs as its supposed to, but is there a way i can set a setting, so my service restarts at a specific moment (every night)?

Kind reguards
Geron
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Automaticly restart a Service

Hello Geron,

We don't have built-in support for such functionality, but what you can do is to create your own EXE or BAT file which will restart the service. Then you can add it alongside the installation files in "Files and Folders" page and create a scheduled task configured to launch it when you need.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Geron Keller
Posts: 6
Joined: Tue Aug 12, 2014 3:06 pm

Re: Automaticly restart a Service

That works fine, thanks.

But is there any way to parameterize the time when its start? I only found the DropDown-Menu, where i can select the time, but i want it as a parameter.
Is that possible and how?

Kind reguards
Geron
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Automaticly restart a Service

Hello Geron,

I'm afraid we don't have support to configure at install time (e.g. through an installer property) the start time of a scheduled task. Maybe we'll add this improvement in a future version of Advanced Installer, thank you for bringing this to our attention. Until then, the only workaround you can try to develop your own custom action which will install/configure the scheduled task as desired.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”