WiX ServiceInstall服务依赖

Joh*_*ley 11 wix serviceinstall

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

Joh*_*ley 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>
Run Code Online (Sandbox Code Playgroud)