【问题标题】:wix service dependencieswix 服务依赖项
【发布时间】:2012-12-09 09:59:40
【问题描述】:

我的产品具有多项功能,包括两项服务。我们称它们为 ServiceA 和 ServiceB。这两项服务功能都是可选的。但是,如果在安装过程中同时选择了 ServiceA 和 ServiceB,我想在它们之间创建一个服务依赖项,以便 ServiceB 将依赖于 ServiceA(换句话说,ServiceB 必须始终在 ServiceA 启动之前启动)。

如何在 WIX 3.6 中实现这一点?

【问题讨论】:

    标签: wix wix3 wix3.6


    【解决方案1】:
    <ServiceInstall Id="ServiceA" DisplayName="ServiceA" Name="ServiceA" 
        Account="LocalSystem" Start="auto" ErrorControl="normal" Type="ownProcess">
        <ServiceDependency Id="ServiceB"/>
    </ServiceInstall>
    

    应该可以,请查看ServiceDependency documentation element

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-05
      • 2023-03-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多