Setting services's Recovery settings

Got a problem you cannot solve? Try here.
mdavtec
Posts: 31
Joined: Wed Jan 20, 2016 2:59 pm

Setting services's Recovery settings

Postby mdavtec » Tue Nov 01, 2016 3:44 pm

I'm using InstallAware 18 and wanted to set the "Recovery" setting of a service that I'm installing. I use two commands, Install and Control, to create the service and control its behavior/options, but don't see any way to set Recovery options. I want to specify what OS (Service Control Manager) should do if a failure occurs and set the value of fail count and like that. Is there a build in InstallAware command to do that?

Thanks,
ExchA

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Setting services's Recovery settings

Postby FrancescoT » Wed Nov 02, 2016 7:44 am

Dear MDA,

you can use the Windows sc command line utility to configure services and this can be easily executed from your setup script via "Run Program" command.
https://technet.microsoft.com/en-us/library/cc742019.aspx

"Run Program allows command line parameters and replicates the same identical functionality that you usually have from command prompt."
http://www.installaware.com/forum/viewtopic.php?f=2&t=1265&start=0
https://www.installaware.com/forums/viewtopic.php?f=2&t=4603

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

mdavtec
Posts: 31
Joined: Wed Jan 20, 2016 2:59 pm

Re: Setting services's Recovery settings

Postby mdavtec » Wed Nov 02, 2016 5:05 pm

Hi Francesco,

Thanks for your reply.

That is what I did to resolve the issue. But I had to wait until "Apply Install" is called to execute sc.exe.
ExchA

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Setting services's Recovery settings

Postby FrancescoT » Thu Nov 03, 2016 8:01 am

...of course you need to call the SC tool after Apply Install...otherwise the service will be not available.

Regards.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 163 guests