Hi,
You can set the recovery options for a service with a "Exe With Worthing Dir" custom action. Here how to do this in Advanced Installer:
1. Switch to "Custom Actions" page and add new "Exe With Worthing Dir" custom action under the "InstallServices" standard action. You can make visible the "InstallServices" standard action by right clicking on "InstallExecuteSequance" and choosing "Show Standard Action->Before Finalization->InstallServices".
2. Use following options for the custom action:
2.1. Full Path:
Code: Select all
sc failure servicename reset= 90000 actions= restart/240000
2.2. Execution Properties: Synchronous execution, ignore return code.
2.3. Execution Options: Deferred.
2.4. Scheduling Options: Always Execute.
2.5. Execution Condition: Not Installed
The sc tool sets control information for a service. You can learn more about how to use the sc tool from the following link:
http://www.microsoft.com/resources/docu ... x?mfr=true
Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com