I am unsuccessfully trying to get my installer to configure the recovery options for my Windows service. I am using the WIX ServiceConfigFailureActions element and the Failure element(s). The only Failure action that works for myself is runCommand. If I use restartService or restartComputer; then msiexec.exe errors with error 5 and error 1939.
I am using msiexec.exe version V 5.0.7601.17514 Other WIX users have had similar problems (http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg35486.html) but it appears that there has not been a fix. Some users have speculated that it is a problem internal to Windows. Here is my ServiceInstall element: <ServiceInstall Id="ServiceInstallID" Name="LPDS Service" DisplayName="LaserPro Document Service" Description="Allows LaserPro Document Service to be used as a web service." Interactive="no" ErrorControl="ignore" Start="auto" Type="ownProcess" Vital="no" > <ServiceConfig FailureActionsWhen="failedToStopOrReturnedError" OnInstall="yes" OnReinstall="yes" OnUninstall="yes" /> <ServiceConfigFailureActions OnInstall="yes" OnReinstall="yes" OnUninstall="yes" ResetPeriod="86400" Command="c:\foo.bat"> <Failure Action="runCommand" Delay="1000"/> <Failure Action="restartService" Delay="2000"/> </ServiceConfigFailureActions> </ServiceInstall> Error from msiexec.exe installation log file: MSI (s) (A0:F8) [08:21:16:136]: Executing op: CacheSizeFlush(,) MSI (s) (A0:F8) [08:21:16:136]: Executing op: ActionStart(Name=InstallServices,Description=Installing new services,Template=Service: [2]) MSI (s) (A0:F8) [08:21:16:142]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000) MSI (s) (A0:F8) [08:21:16:143]: Executing op: ServiceInstall(Name=LPDS Service,DisplayName=LaserPro Document Service,ImagePath=C:\LPDS\CFI\Service.exe,ServiceType=32,StartType=2,ErrorControl=32768,,Dependencies=[~],,,Password=**********,Description=Allows LaserPro Document Service to be used as a web service.,,) MSI (s) (A0:F8) [08:21:16:771]: Executing op: ActionStart(Name=MsiConfigureServices,,) MSI (s) (A0:F8) [08:21:16:771]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000) MSI (s) (A0:F8) [08:21:16:771]: Executing op: ServiceConfigure(,Name=LPDS Service,Event=5,ConfigType=4,Argument=1) MSI (s) (A0:F8) [08:21:16:771]: Changing configuration of service LPDS Service. MSI (s) (A0:F8) [08:21:16:781]: Changed configuration of service LPDS Service with ConfigType SERVICE_CONFIG_FAILURE_ACTIONS_FLAG MSI (s) (A0:F8) [08:21:16:781]: Done changing configuration of service LPDS Service MSI (s) (A0:F8) [08:21:16:781]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000) MSI (s) (A0:F8) [08:21:16:781]: Executing op: ServiceConfigureFailureAction(,Name=LPDS Service,Event=1,,RebootMessage=[~],Command=[~],Actions=1,DelayActions=9000) MSI (s) (A0:F8) [08:21:16:781]: Changing configuration of failure action for service LPDS Service. MSI (s) (A0:F8) [08:21:16:782]: Warning: ResetPeriod is <blank>. Trying to change current configuration of failure action for service LPDS Service. Replacing with default argument INFINITE MSI (s) (A0:F8) [08:21:16:782]: Error: 5. Failed to change current configuration of failure action for service LPDS Service MSI (s) (A0:F8) [08:21:16:782]: Failed to change configuration of failure action for service LPDS Service MSI (s) (A0:F8) [08:21:16:782]: Note: 1: 2205 2: 3: Error MSI (s) (A0:F8) [08:21:16:782]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1939 MSI (c) (D8:DC) [08:21:16:785]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg Error 1939. Service 'LaserPro Document Service' (LPDS Service) 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) (A0:F8) [08:21:46:995]: Note: 1: 2205 2: 3: Error MSI (s) (A0:F8) [08:21:46:995]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 MSI (s) (A0:F8) [08:21:46:995]: Product: LaserPro Document Service -- Error 1939. Service 'LaserPro Document Service' (LPDS Service) 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. Does anyone know how to successfully configure the recovery options of a Windows service with WIX? Thanks, Marty Offe ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users