SERVICE_FAILURE_ACTIONS结构包含多个SC_ACTION(通常为3)。每个都包含重新启动延迟。
然而在WiX中,util:ServiceConfig包含一个RestartServiceDelayInSeconds,它设置所有3的值。
e.g。
<util:ServiceConfig FirstFailureActionType="restart"
SecondFailureActionType="restart"
ThirdFailureActionType="restart"
ResetPeriodInDays="1"
RestartServiceDelayInSeconds="1" />
有没有办法为3次失败动作的延迟提供3个不同的值?
答案 0 :(得分:0)
看起来不可能。 RestartServiceDelayInSeconds
州的描述:
如果三个 * ActionType属性中的任何一个是&#34;重新启动&#34;,则指定在执行此操作之前等待的秒数。