I'm having difficulty getting the Failure Operations to apply to a service I create with my installer. The service is created and started successfully by the installer, so I assume the details in "Services to install" and "Control Operations" are correct.
Under Failure Operations, I have used the dropdown to populate Service Name (it's the only option available) and Attached Component (same as the service name). Configure On is set to Install only. Failure Actions are set to: #1 Restart the service after 1 minute, #2 Restart the service after 2 minutes, #3 Restart the service after 15 minutes (these are placeholders to test with). Reset failure count is enabled and set to 1 day. Reboot Message and Run Program are not set.
I'm using Advanced Installer Version 16.9 (D24925F7). The service settings are set within a Merge Module, which I'm using with an Enterprise project. My PC is Windows 10 Pro (1909) and my test VM is a domain-member running Windows Server 2019 Standard (1809).
I know I can work round this using SC.exe in a powershell custom action e.g. something like
Code: Select all
sc.exe failure <servicename> reset= 86400 actions= restart/360000/restart/720000/restart/3960000Any ideas for how can I troubleshoot this?
FOLLOW US
Get the latest news in Application Packaging