[wix-users] ServiceConfigFailureActions
Rob Mensching
rob at firegiant.com
Fri Nov 20 10:07:34 PST 2015
If so, you'd need to contact the Windows Installer team. That one is their functionality. The util: extension is part of WiX.
_____________________________________________________________
Short replies here. Complete answers over there: http://www.firegiant.com/
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Stephen Woolhead
Sent: Friday, November 20, 2015 8:59 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] ServiceConfigFailureActions
Hi, is there a fundemental problem with ServiceConfigFailureActions?
I have the following (simplified) in a wxs:
<Component >
<File Source="Service.exe" KeyPath="yes" />
<ServiceInstall Name="ess" >
<ServiceDependency Id="MSMQ"/>
<ServiceConfig DelayedAutoStart="yes" OnInstall="yes" OnReinstall="yes" OnUninstall="yes" />
<ServiceConfigFailureActions OnInstall="yes" OnReinstall="yes" OnUninstall="yes" ResetPeriod="180">
<Failure Action="restartService" Delay="20" />
<Failure Action="restartService" Delay="20" />
</ServiceConfigFailureActions>
</ServiceInstall>
<ServiceControl Name="ess" Remove="uninstall" Stop="both" />
</Component>
If I remove the failure elements, then the install works, with them in place I get
MSI (s) (14:18) [16:48:22:468]: Changing configuration of service ess.
MSI (s) (14:18) [16:48:22:468]: Changed configuration of service ess with ConfigType SERVICE_CONFIG_DELAYED_AUTO_START_INFO
MSI (s) (14:18) [16:48:22:468]: Done changing configuration of service ess MSI (s) (14:18) [16:48:22:468]: Executing op: ServiceConfigureFailureAction(,Name=ess,Event=7,ResetPeriod=180,RebootMessage=[~],Command=[~],Actions=1[~]1,DelayActions=20[~]20)
MSI (s) (14:18) [16:48:22:468]: Changing configuration of failure action for service ess.
MSI (s) (14:18) [16:48:22:468]: Error: 5. Failed to change current configuration of failure action for service ess MSI (s) (14:18) [16:48:22:468]: Failed to change configuration of failure action for service ess MSI (c) (D0:E0) [16:48:22:468]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
Error 1939. Service 'ESS' (ess) could not be configured. This could be a problem with the package or your permissions. Verify that you have sufficient privileges to configure system services.
MSI (s) (14:18) [16:49:22:611]: Product: Service Components V2.9.3 (INTERNAL BUILD) -- Error 1939. Service 'ESS' (ess) could not be configured. This could be a problem with the package or your permissions. Verify that you have sufficient privileges to configure system services.
Action ended 16:49:22: InstallFinalize. Return value 3.
I'm running this MSI via msiexec as a local (elevated) admin on 2012-R2.
I can see a lot of similar issues on google, but none of them that I can see have an actual answer to this, the all seem to say use utils:ServiceConfig
Thanks,
Stephen.
More information about the wix-users
mailing list