Setting services's Recovery settings
Posted: Tue Nov 01, 2016 3:44 pm
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,
Re: Setting services's Recovery settings
Posted: Wed Nov 02, 2016 7:44 am
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/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=0https://www.installaware.com/forums/viewtopic.php?f=2&t=4603Hope this helps you.
Regards
Re: Setting services's Recovery settings
Posted: Wed Nov 02, 2016 5:05 pm
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.
Re: Setting services's Recovery settings
Posted: Thu Nov 03, 2016 8:01 am
by FrancescoT
...of course you need to call the SC tool after Apply Install...otherwise the service will be not available.
Regards.