Setting services's Recovery settings

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

Setting services's Recovery settings

Post by mdavtec »

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

Post by FrancescoT »

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/lib ... 42019.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/viewt ... 65&start=0
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

Post by mdavtec »

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

Post by FrancescoT »

...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
Post Reply