如何在WiX ServiceInstall属性中为服务设置依赖项,以依赖于,例如,LmHosts
答案 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>