You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following code which creates 2 Windows Services
// Create the Service element for Connexion.Gateway service
var service = installDir.Files.FirstOrDefault(f => string.Compare(f.Id, "Connexion.Gateway.exe", StringComparison.OrdinalIgnoreCase) == 0);
if (service == null)
throw new Exception("Could not locate Connexion.Gateway.exe");
var serviceInstaller = CreateService("Connexion.Gateway", "Connexion Gateway Service");
serviceInstaller.StartOn.Start = null; //set it to null if you don't want service to start as during deployment
service.ServiceInstaller = serviceInstaller;
// Create Alerting Service
var alertingService = installDir.Files.FirstOrDefault(f => string.Compare(f.Id, "Connexion.Gateway.Alerting.exe", StringComparison.OrdinalIgnoreCase) == 0);
if (alertingService == null)
throw new Exception("Could not locate Connexion.Gateway.Alerting.exe");
var alertingServiceInstaller = CreateService("Connexion.Gateway.Alerting", "Connexion Gateway Alerting Service");
alertingServiceInstaller.StartOn.Start = null; //set it to null if you don't want service to start as during deployment
alertingService.ServiceInstaller = alertingServiceInstaller;
This results in the both services end up with the same ServiceControl. It appears that WixSharp is using the last set ServiceControl for both Services. This is new to the latest version of WixSharp (v1.9.3)
* VS project templates - added packages.config files
* Added Condition-s for .NET Frameworks 4.7.1 and 4.7.2
* Issue #569: Updating WixSharp leads to malfuncion of SetEvVar
* Added support for `UI.Error` WiX element
* Issue #552: Question: Install 2 windows services in same installer
* Issue #541: Installing 2 Services in the same installer results in …
* Samples update
* Issue #560: Semantic difference between UninstallCondition and IsUninstalling
* Issue #564: Correct variable name of SequentialGuid initialization.
* Issue #562: Typo in Compiler.cs comments
* Issue #561: Typo in WixProject.cs
* Added missing namespace in custom dialog template, fixed comment.
* Added explicit `WixEntity.ComponentId` property
* Issue #551: Cannot include extra .wxs as part of a bundle
* Issue #542: ServiceInstaller.StartOn/StopOn/RemoveOn - Documentation bug
* Issue #544: Failed while processing WebSites; added support for `IISVirtualDir.AttributesDefinition`
I have the following code which creates 2 Windows Services
This results in the both services end up with the same ServiceControl. It appears that WixSharp is using the last set ServiceControl for both Services. This is new to the latest version of WixSharp (v1.9.3)
The text was updated successfully, but these errors were encountered: