VMware Cloud Community
sagizar
Contributor
Contributor

Windows Service recovery settings

Hi,

My installer need to install a windows service and I need to control the settings in the recovery tab of the service.

things like: what action to take after first, second and subsequent failures of the service.

I didn't find if this can be controlled in the <createWindowsService> action.

if it can't be controlled using a standard way, what are the options to set this during installation?

Regards,

 Sagi

0 Kudos
1 Reply
sagizar
Contributor
Contributor

found that this can be achieved by running the sc.exe application from the installer after installing the service with following parameters:

failure ServiceName reset= 86400 actions= restart/2000/restart/4000//8000

0 Kudos