If the service to be installed has the start " Type = disabled ", Msi tries to start the service and fails
<component id="user-content-TestServiceConfigComponent" guid="9E70C11E-A313-448F-96A1-2A284F5D3DDC" diskid="1"></component>
<file id="user-content-TestService.exe" name="TestService.exe" source="C:\Users\mohann\Documents\Visual Studio 2008\Projects\Project1\WindowsService1\bin\Debug\WindowsService1.exe" keypath="no"></file>
<serviceinstall id="user-content-TestService.exe" name="TestService12365432" displayname="Sample service121234566" type="ownProcess" interactive="no" start="Disabled" vital="yes" errorcontrol="normal"></serviceinstall>
<util:serviceconfig firstfailureactiontype="restart" secondfailureactiontype="restart" thirdfailureactiontype="none" resetperiodindays="7" restartservicedelayinseconds="60"></util:serviceconfig>
Expected behavior: When the start type is set to disabled MSI should not try to start it.
Does the same error occur without the ServiceConfig?
That's Windows Installer behavior. I don't think there is much we could do here except maybe adding an ICE.