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,
Setting services's Recovery settings
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Setting services's Recovery settings
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
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
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
Re: Setting services's Recovery settings
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.
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
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Setting services's Recovery settings
...of course you need to call the SC tool after Apply Install...otherwise the service will be not available.
Regards.
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
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
Who is online
Users browsing this forum: No registered users and 163 guests