cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hackaway
Level 3

Error 1939 when using <util:ServiceConfig> on Windows Server 2008 R2



I have a C# Windows Service project. I have a Install Shield 2011 Express project for installing this Windows Service. Because IS2011 do not directly support such installations I have made a Merge Module in Wix which I install via the IS2011 project.
The final IS2011 installer has been working well (Windows 2003, Windows 2008 R2, Windows XP).

I have since realized I need to add dependencies and recovery options for this Windows service. This I did by adding the elements :
- ServiceDependency
- ServiceConfig
- ServiceConfigFailureActions
- util:ServiceConfig

I tried installing on a Windows Server 2003 32-bit and it worked OK. All properties were set for the service as expected.
Installing on a 64-bit Windows Server 2008 R2 I get this error message:
"Error 1939. Service 'xyz' (xyz) 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."

This is the portion of the XML file concerning the Windows Service:













By blocking/removing these elements the installation works fine on the Windows Server 2008 R2.
- ServiceConfig
- ServiceConfigFailureActions
- util:ServiceConfig

After installation is done, I can then open up the Windows service "xyz" and manually set the recovery for the service to "restart" without any error messages.


Any help greatly appreciated. Got no response from Wix user list, hopefully someone here can help.
Labels (1)
0 Kudos
(2) Replies
Christopher_Pai
Level 16

I'd stick to the WiX-Users list. I must have missed that message so I'll see if I can find it and reply.

BTW, it looks like you did get a reply:

http://permalink.gmane.org/gmane.comp.windows.devel.wix.user/53618
0 Kudos
hackaway
Level 3

Christopher Painter wrote:
I'd stick to the WiX-Users list. I must have missed that message so I'll see if I can find it and reply.

BTW, it looks like you did get a reply:

http://permalink.gmane.org/gmane.comp.windows.devel.wix.user/53618

Yes I found the reply today after posting here. I will try and find the differences between the two OS in this regard.
0 Kudos