Re: [WiX-users] How do to configure a Windows service to "Restart the Service" upon failure?

2013-02-08 Thread Marty Offe
YES!!!  Using the util:ServiceConfig element WORKED!!   THANK YOU!  :-)

Marty Offe




-Original Message-
From: Nick Ramirez [mailto:nickra...@hotmail.com] 
Sent: Monday, December 17, 2012 9:03 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How do to configure a Windows service to "Restart the 
Service" upon failure?

Does it work if, instead of using the ServiceConfigFailureActions and Failure 
elements, you use the util:ServiceConfig element? It has 
FirstFailureActionType, SecondFailureActionType and ThirdFailureActionType 
attributes that you can set to "restart", "runcommand" or "reboot".



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-do-to-configure-a-Windows-service-to-Restart-the-Service-upon-failure-tp7582414p7582415.html
Sent from the wix-users mailing list archive at Nabble.com.

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



--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How do to configure a Windows service to "Restart the Service" upon failure?

2012-12-17 Thread Bob Arnson
On 17-Dec-12 11:43, Marty Offe wrote:
> I am *not* able to get msiexec.exe to set the recovery option of my Windows 
> service to "Restart the Service".
Two things:

 1. Your authoring doesn't match your MSI tables doesn't match your MSI log.
 2. There's no indication in the doc that MsiServiceConfigFailureActions
supports running batch files. Try notepad or something else.

-- 
sig://boB
http://joyofsetup.com/

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


Re: [WiX-users] How do to configure a Windows service to "Restart the Service" upon failure?

2012-12-17 Thread Adam Kadzban
To add to what Nick said, here's what I have. It works in WiX 3.5:





-Adam

On Mon, Dec 17, 2012 at 11:05 AM, Peter Shirtcliffe wrote:

> Error 5 is access denied. Are you running the installation as
> administrator ?
>
> -Original Message-
> From: Marty Offe [mailto:marty.o...@harlandfs.com]
> Sent: 17 December 2012 16:44
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] How do to configure a Windows service to "Restart the
> Service" upon failure?
>
> I am *not* able to get msiexec.exe to set the recovery option of my Windows
> service to "Restart the Service".
>
> Wix 3.6 documentation suggests that I can use ServiceConfigFailureActions
> to
> accomplish this.
> Here is my ServiceInstall element:
>  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" >
>OnInstall="yes" OnReinstall="yes" OnUninstall="yes" />
>OnUninstall="yes" ResetPeriod="86400" Command="c:\foo.bat">
> 
> 
>   
> 
>
>
> I am using msiexec.exe version V 5.0.7601.17514 Error from 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=130)
> 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,ErrorCon
> trol=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=130)
> 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=130)
> 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 . 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.
>
>
>
> Here are the rows that WIX generates in the MsiServiceConfig and
> MsiSErviceConfigFailureActions tables:
>
> MsiServiceConfig NameEventConfigType
> Argument   Component_
> LPDS_Service.FA  LPDS Service  7  4
> 1  LPDSService.exe
>
>
> MsiServiceConfigFailureActions table contents:
> MsiServiceConfigFailureActionsNameE

Re: [WiX-users] How do to configure a Windows service to "Restart the Service" upon failure?

2012-12-17 Thread Peter Shirtcliffe
Error 5 is access denied. Are you running the installation as administrator ?

-Original Message-
From: Marty Offe [mailto:marty.o...@harlandfs.com] 
Sent: 17 December 2012 16:44
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How do to configure a Windows service to "Restart the
Service" upon failure?

I am *not* able to get msiexec.exe to set the recovery option of my Windows
service to "Restart the Service".

Wix 3.6 documentation suggests that I can use ServiceConfigFailureActions to
accomplish this.
Here is my ServiceInstall element:

  
  


  



I am using msiexec.exe version V 5.0.7601.17514 Error from 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=130)
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,ErrorCon
trol=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=130)
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=130)
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 . 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.



Here are the rows that WIX generates in the MsiServiceConfig and
MsiSErviceConfigFailureActions tables:

MsiServiceConfig NameEventConfigType
Argument   Component_
LPDS_Service.FA  LPDS Service  7  4
1  LPDSService.exe


MsiServiceConfigFailureActions table contents:
MsiServiceConfigFailureActionsNameEvent
ResetPeriod   RebootMessage   CommandActions
DelayActions  Component_
LPDS_Service LPDS Service
7  86400[~]
c:\foo.bat1[~]3 3000[~]3000
LPDSService.exe




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

Re: [WiX-users] How do to configure a Windows service to "Restart the Service" upon failure?

2012-12-17 Thread Nick Ramirez
Does it work if, instead of using the ServiceConfigFailureActions and Failure
elements, you use the util:ServiceConfig element? It has
FirstFailureActionType, SecondFailureActionType and ThirdFailureActionType
attributes that you can set to "restart", "runcommand" or "reboot".



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-do-to-configure-a-Windows-service-to-Restart-the-Service-upon-failure-tp7582414p7582415.html
Sent from the wix-users mailing list archive at Nabble.com.

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