12

How do I set a dependency for a service in the WiX ServiceInstall attribute to depend on, for example, LmHosts

John Oxley
  • 14,698
  • 18
  • 53
  • 78

1 Answers1

17
<ServiceInstall Id="ServiceNameId" Type="ownProcess" Name="ServiceName"
                DisplayName="Service Display Name"
                Description="Service Description" Start="auto" Account="LOCALSYSTEM"
                ErrorControl="normal">
      <ServiceDependency Id="LmHosts" />
</ServiceInstall>
John Oxley
  • 14,698
  • 18
  • 53
  • 78