Skip to content

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

string

This 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

string

Unique identifier for this service configuration. This value will default to the ServiceName attribute if not specified.

OnInstall

yesno

Specifies whether to configure the service when the parent Component is installed. This attribute may be combined with OnReinstall and OnUninstall.

OnReinstall

yesno

Specifies whether to configure the service when the parent Component is reinstalled. This attribute may be combined with OnInstall and OnUninstall.

OnUninstall

yesno

Specifies whether to configure the service when the parent Component is uninstalled. This attribute may be combined with OnInstall and OnReinstall.

RebootMessage

string

Specifies 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

Integer

Specifies the time in seconds to reset the failure count. If this attribute is not present the failure count will not be reset.

ServiceName

string

Specifies 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.

Parents

Windows Installer references