wix服务依赖项

前端之家收集整理的这篇文章主要介绍了wix服务依赖项前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的产品有几个功能,包括两项服务.我们称之为ServiceA和ServiceB.这两个服务功能都是可选的.但是,如果在安装期间选择了ServiceA和ServiceB,我想在它们之间创建服务依赖关系,以便ServiceB依赖于ServiceA(换句话说,ServiceB必须始终在启动ServiceA之前启动).

我如何在WIX 3.6中实现这一目标?

解决方法

<ServiceInstall Id="ServiceA" DisplayName="ServiceA" Name="ServiceA" 
    Account="LocalSystem" Start="auto" ErrorControl="normal" Type="ownProcess">
    <ServiceDependency Id="ServiceB"/>
</ServiceInstall>

这应该工作,检查ServiceDependency documentation element

猜你在找的设计模式相关文章