WiX ServiceInstall服务依赖

时间:2013-01-15 14:24:15

标签: wix serviceinstall

如何在WiX ServiceInstall属性中为服务设置依赖项,以依赖于,例如,LmHosts

1 个答案:

答案 0 :(得分:16)

<ServiceInstall Id="ServiceNameId" Type="ownProcess" Name="ServiceName"
                DisplayName="Service Display Name"
                Description="Service Description" Start="auto" Account="LOCALSYSTEM"
                ErrorControl="normal">
      <ServiceDependency Id="LmHosts" />
</ServiceInstall>