ServiceConfigFailureActions element
Configures the failure actions for a service being installed or one that already exists. This element’s functionality is available starting with MSI 5.0.
Attributes
Command
stringThis attribute specifies command to execute when a “runCommand” failure action hit. If an empty string is provided it clears the existing command. If this attribute is not present the setting is not changed.
Id
stringUnique identifier for this service configuration. This value will default to the ServiceName attribute if not specified.
OnInstall
yesnoSpecifies whether to configure the service when the parent Component is installed. This attribute may be combined with OnReinstall and OnUninstall.
OnReinstall
yesnoSpecifies whether to configure the service when the parent Component is reinstalled. This attribute may be combined with OnInstall and OnUninstall.
OnUninstall
yesnoSpecifies whether to configure the service when the parent Component is uninstalled. This attribute may be combined with OnInstall and OnReinstall.
RebootMessage
stringSpecifies the message to show for a reboot failure action. If an empty string is provided it clears any existing reboot message. If this attribute is not present the setting is not changed.
ResetPeriod
IntegerSpecifies the time in seconds to reset the failure count. If this attribute is not present the failure count will not be reset.
ServiceName
stringSpecifies the name of the service to configure. This value will default to the ServiceInstall/@Name attribute when nested under a ServiceInstall element.
Children
- Failure
- Ordered list of failure actions to apply to service.