cancel
Showing results for 
Search instead for 
Did you mean: 
Marek22
Pilgrim

Configuring Windows Service Recovery Actions Fails

Hello,
I was trying to configure recovery actions for my service on install, but the error has occured. The error and my IS configuration and desired windows service configuration is on the pictures.
How can I correctly configure this Recovery Actions? I am running the setup as administrator and when I do the configuration manually, it just works.

And the second question is how to configure this service to act reasonable during the patch progress. By reasonable I mean:
1. Stop service
2. Patch files
3. Start service

This topic is not very well documented and I cant find it anywhere on the web. Everyone is just recomending using some .exe custom actions and I wanted to avoid that since IS has support for installing services.

Many thanks,
Marek




Log:
[CODE]MSI (s) (90:64) [18:58:24:313]: Executing op: ServiceInstall(Name=MarekService,DisplayName=MarekService,ImagePath="C:\Program Files (x86)\Marek\MarekService\MarekService.exe",ServiceType=16,StartType=2,ErrorControl=32769,,Dependencies=[~],,,Password=**********,Description=Mareks windows service,,)
InstallServices: Service:
MSI (s) (90:64) [18:58:24:314]: Executing op: ActionStart(Name=MsiConfigureServices,,)
Action 18:58:24: MsiConfigureServices.
MSI (s) (90:64) [18:58:24:315]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (90:64) [18:58:24:315]: Executing op: ServiceConfigure(,Name=MarekService,Event=1,ConfigType=4,Argument=1)
MSI (s) (90:64) [18:58:24:316]: Changing configuration of service MarekService.
MSI (s) (90:64) [18:58:24:316]: Changed configuration of service MarekService with ConfigType SERVICE_CONFIG_FAILURE_ACTIONS_FLAG
MSI (s) (90:64) [18:58:24:316]: Done changing configuration of service MarekService
MSI (s) (90:64) [18:58:24:316]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (90:64) [18:58:24:316]: Executing op: ServiceConfigureFailureAction(,Name=MarekService,Event=1,ResetPeriod=60,,,Actions=1[~][~],DelayActions=1000[~][~])
MSI (s) (90:64) [18:58:24:316]: Changing configuration of failure action for service MarekService.
MSI (s) (90:64) [18:58:24:317]: Error: 5. Failed to change current configuration of failure action for service MarekService
MSI (s) (90:64) [18:58:24:317]: Failed to change configuration of failure action for service MarekService
Error 1939. Service 'MarekService' (MarekService) 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) (90:64) [18:58:25:392]: Product: MarekService -- Error 1939. Service 'MarekService' (MarekService) 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.[/CODE]
Labels (1)
0 Kudos
6 Replies
Marek22
Pilgrim

Re: Configuring Windows Service Recovery Actions Fails

Please, noone really knows how to configure this recovery conditions? I found nothing on the internet and in the documentation.
0 Kudos
OneDayBehind
Pilgrim

Re: Configuring Windows Service Recovery Actions Fails

I'm having issues getting the recovery settings to work as well. I'm getting the following error:

Error 1939.Service 'My Service' (MyService) 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.


Finding nearly no help online, it seems like either this is a feature no one uses or is a feature that doesn't actually work and everyone avoids? :confused:

I don't seem to have any security issues that keep me from changing the recovery settings manually, so I'm inclined to think that the privileges are not the issue. Using the sc command, I can set the recovery settings to where I want them to be, but it would sure be nice to just use the built-in tools in InstallShield.
sc failure MyService actions= restart/180000/restart/180000/""/180000 reset= 86400
0 Kudos
fmorales
Pilgrim

Re: Configuring Windows Service Recovery Actions Fails

Hello, any idea about this problem???? I have exactly same error.

Thanks a lot
Francisco Morales


Marek22 wrote:
Hello,
I was trying to configure recovery actions for my service on install, but the error has occured. The error and my IS configuration and desired windows service configuration is on the pictures.
How can I correctly configure this Recovery Actions? I am running the setup as administrator and when I do the configuration manually, it just works.

And the second question is how to configure this service to act reasonable during the patch progress. By reasonable I mean:
1. Stop service
2. Patch files
3. Start service

This topic is not very well documented and I cant find it anywhere on the web. Everyone is just recomending using some .exe custom actions and I wanted to avoid that since IS has support for installing services.

Many thanks,
Marek




Log:
[CODE]MSI (s) (90:64) [18:58:24:313]: Executing op: ServiceInstall(Name=MarekService,DisplayName=MarekService,ImagePath="C:\Program Files (x86)\Marek\MarekService\MarekService.exe",ServiceType=16,StartType=2,ErrorControl=32769,,Dependencies=[~],,,Password=**********,Description=Mareks windows service,,)
InstallServices: Service:
MSI (s) (90:64) [18:58:24:314]: Executing op: ActionStart(Name=MsiConfigureServices,,)
Action 18:58:24: MsiConfigureServices.
MSI (s) (90:64) [18:58:24:315]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (90:64) [18:58:24:315]: Executing op: ServiceConfigure(,Name=MarekService,Event=1,ConfigType=4,Argument=1)
MSI (s) (90:64) [18:58:24:316]: Changing configuration of service MarekService.
MSI (s) (90:64) [18:58:24:316]: Changed configuration of service MarekService with ConfigType SERVICE_CONFIG_FAILURE_ACTIONS_FLAG
MSI (s) (90:64) [18:58:24:316]: Done changing configuration of service MarekService
MSI (s) (90:64) [18:58:24:316]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000)
MSI (s) (90:64) [18:58:24:316]: Executing op: ServiceConfigureFailureAction(,Name=MarekService,Event=1,ResetPeriod=60,,,Actions=1[~][~],DelayActions=1000[~][~])
MSI (s) (90:64) [18:58:24:316]: Changing configuration of failure action for service MarekService.
MSI (s) (90:64) [18:58:24:317]: Error: 5. Failed to change current configuration of failure action for service MarekService
MSI (s) (90:64) [18:58:24:317]: Failed to change configuration of failure action for service MarekService
Error 1939. Service 'MarekService' (MarekService) 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) (90:64) [18:58:25:392]: Product: MarekService -- Error 1939. Service 'MarekService' (MarekService) 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.[/CODE]
0 Kudos
fmorales
Pilgrim

Re: Configuring Windows Service Recovery Actions Fails

Hello, I have exactly same problem... any solution ????
0 Kudos
Highlighted
SwethaRao
Pilgrim

Bug in Windows Installer

Please review the below KB article:-

http://flexerasoftware.force.com/articles/en_US/PROBLEM/Q204139

This has a possible workaround described. Please try it.

Thanks ~ Swetha
0 Kudos
amanchanda
Pilgrim

Re: Configuring Windows Service Recovery Actions Fails

SwethaRao wrote:
Please review the below KB article:-

http://flexerasoftware.force.com/articles/en_US/PROBLEM/Q204139

This has a possible workaround described. Please try it.

Thanks ~ Swetha


For me, This workaround does not work either. It gives Error 1721. If I try to execute the sc command as script code. The installation completes but the Service is not configured. Flexera charges thousands of dollars per year for maintenance support and what kind of support this company provides. I am disgusted.
0 Kudos