Hello,

I'm using Wix3.0 and trying to define, during installation process, the default actions to be done when a service fails.

<
Directory Id="TARGETDIR" Name="SourceDir">

    <Directory Id="ProgramFilesFolder">
        <
Directory Id="INSTALLLOCATION" Name="MyName">
           
<Component Id="MyIdSvc" Guid="72BFD935-4DB7-4079-8BB2-894E3D6B6FCE" SharedDllRefCount='no'
   
            KeyPath='no' NeverOverwrite='no' Permanent='no' Transitive='no'
Win64='no' Location='either'>
                <
File Id="mySvc" Name="Svc.exe" Source="..\Svc\bin\Svc.exe" ReadOnly='no' KeyPath='yes' Hidden='no' System='no' Vital='yes' Checksum='no' />
                <
ServiceInstall Id='SvcInstall' DisplayName='SvcName' Name='Svc' ErrorControl='normal' Start='auto' Type='ownProcess' Vital='yes' >
                   
<
ServiceDependency Id='tcpip' Group='no'/>
                    <
ServiceConfig xmlns="http://schemas.microsoft.com/wix/UtilExtension"
                                FirstFailureActionType
="restart"
                               
SecondFailureActionType="runCommand"
                                ThirdFailureActionType
="reboot"
                                RestartServiceDelayInSeconds
="10"
                               
ProgramCommandLine= "[INSTALLLOCATION]\App.exe"
                                ResetPeriodInDays
="7" />
                </
ServiceInstall>
                <
ServiceControl Id='AppliSvcControl' Name='AppliSvc' Start='install' Stop='uninstall' Remove='uninstall'/>
            </
Component>
...

I'm facing 2 issues:
* "reboot" as xxxxFailureActionType seems to crash the installation (not the wix compilation)
* How can I define the path of the app to run when one of the xxxFailureAction is set to "runCommand"? [INSTALLLOCATION]\App.exe is used "as is" no "translation".


Thank you for your feedback.

Crusty Applesniffer.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to