wix service dependencies
Asked Answered
K

1

5

My product has several features including two services. Let's call them ServiceA and ServiceB. Both of these service features are optional. However if both ServiceA and ServiceB is selected during install I want to create a service dependency between them so that ServiceB will depend on ServiceA (in other words ServiceB must always start before ServiceA is launched).

How do I achieve this in WIX 3.6?

K answered 9/12, 2012 at 9:59 Comment(0)
P
7
<ServiceInstall Id="ServiceA" DisplayName="ServiceA" Name="ServiceA" 
    Account="LocalSystem" Start="auto" ErrorControl="normal" Type="ownProcess">
    <ServiceDependency Id="ServiceB"/>
</ServiceInstall>

That should work, check out ServiceDependency documentation element

Pl answered 10/12, 2012 at 9:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.