Hi all,
first email to this list. I have no experience of installers, Wix and 
what have you. I have managed so far by getting help by googling and 
also by some helpful individuals but now I am stuck.

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:
<ServiceInstall Id="installWS" Name="xyz" DisplayName="xyz" 
Description="abc" Start="auto" Type ="ownProcess" ErrorControl ="normal" 
Vital="yes">
                   <ServiceConfig DelayedAutoStart="yes" OnInstall="yes"/>
                   <util:ServiceConfig FirstFailureActionType="restart" 
SecondFailureActionType="restart" ThirdFailureActionType="restart" 
RestartServiceDelayInSeconds="60" />
                   <ServiceConfigFailureActions OnInstall="yes">
                     <Failure Action="1" Delay="20000"/>
                   </ServiceConfigFailureActions>
                   <ServiceDependency Id="MSSQL$SQLEXPRESS"/>
                 </ServiceInstall>
                 <ServiceControl Id="controlWS" Name="xyz" Remove="both" 
Stop ="both" Start="install" Wait ="yes"/>


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

After installation if 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.


Kind Regards
Jerra
-------------------------------
Visual Studio Professional 2010
Install Shield 2011 Express
Wix 3.5 & Votive
Windows XP

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to