Menu

#1398 When Service start type is set to disabled MSI still tries t

v3.0
closed
2012-09-15
2008-11-01
candyc
No

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.

Discussion

  • Bob Arnson

    Bob Arnson - 2008-11-04

    Does the same error occur without the ServiceConfig?

     
  • Rob Mensching

    Rob Mensching - 2008-11-06

    That's Windows Installer behavior. I don't think there is much we could do here except maybe adding an ICE.

     
MongoDB Logo MongoDB