i am working on a service that is later deployed by a WIX installer.
this is service installer class
this.ServiceInstaller.DisplayName = "My Service";
this.ServiceInstaller.ServiceName = "MyService";
this.ServiceInstaller.ServicesDependedOn = new string[] {
"ServiceA",
"ServiceB",
"ServiceC"};
and this is the WIX installer code
<Component Id="MyService.exe" Guid="{1234}">
<File Id="MyService.exe" KeyPath="yes" Source="$system$(sys.BUILDARCH)MyService.exe">
<netfx:NativeImage Id="MyService.exe" Platform="all" Priority="1" />
</File>
<ServiceInstall Id="MyService.exe" DisplayName="My OTHER Service" Name="MyService" ErrorControl="normal" Start="auto" Type="ownProcess">
<ServiceDependency Id="ServiceD" />
<ServiceDependency Id="ServiceE" />
<ServiceDependency Id="ServiceF" />
<util:ServiceConfig FirstFailureActionType="restart" SecondFailureActionType="restart" ThirdFailureActionType="restart" RestartServiceDelayInSeconds="10" />
</ServiceInstall>
<ServiceControl Id="MyService.exe" Name="MyService" Stop="install" Remove="uninstall" />
</Component>
as far as i can tell, the configuration in the WIX completely overrides the settings in the project installer. (specifically name and dependencies)
is this a default behavior?
whats the point of having a serviceInstaller class if WIX is going to completely ignore it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…