Hello Nicholas You should preferrably ask these questions on the Wix-User list, not on the Wix-Devs list, since this is not a problem concerning Wix itself.
Try to change ErrorControl="critical" into "normal". Then the system should stop rebooting. You will find explanation on the following pages: ServiceInstall table, ErrorControl http://msdn.microsoft.com/en-us/library/aa371637(VS.85).aspx CreateService function, dwErrorControl parameter http://msdn.microsoft.com/en-us/library/ms682450(v=VS.85).aspx and of course in the Wix doc under the "Service Install" element, "ErrorControl" attribute itself. Good luck! Subject: [WiX-devs] Reboot loop on Windows Service Startup failure Date: Tue, 15 Mar 2011 11:04:20 -0500 From: Nicholas Porter <[email protected]> Reply-To: Windows Installer XML toolset developer mailing list <[email protected]> To: [email protected] I am using Wix 3.5 and Visual Studio 2010 to install a Windows Service on a Windows Server 2003 SP 2 box. After a system reboot if an exception is thrown in the Startup method of the service it causes the machine to reboot. If the exception continues to be thrown in the service startup it can cause the machine to go into a reboot loop where a console session has to be initiated to take the system back to the last known good configuration in order to recover. The recovery options are set to 'Take No Action' but because the error is thrown not after the service has already started but during startup this setting does not appear to make any difference. Is there a setting in the Wix XML file that can guard against this problem? Below is the ServiceInstall portion of the Wix XML file. If anyone has seen this error any help will be greatly appreciated. <ServiceInstall Id="ServiceInstaller" Type="ownProcess" Vital="yes" Name="$(var.ServiceName)" DisplayName="$(var.ServiceName)" Description="My service description" ErrorControl="critical" Interactive="no" Start="auto"> </ServiceInstall> <ServiceControl Id="StartService" Stop="both" Remove="uninstall" Name="$(var.ServiceName)" Wait="yes" /> ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ WiX-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-devs -- Schon gehört? GMX hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://www.gmx.net/de/go/toolbar ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ WiX-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-devs
