I'm looking to make a wix installer for a service that will be dependent on sql
server. The name of the SQL Server service is dependent on the name of the SQL
instance and other things. In a windows depoloyment project, I'm scanning the
list of services that start with MSSQL$ and setting them as a dependency. How
does this translate to WiX? I'd prefer to do it in an automated way if
possible. Any advice is appreciated. Thanks.
ServiceController[] services = ServiceController.GetServices();
var dependentServices = new List<string>();
foreach (ServiceController service in services.Where(x =>
x.ServiceName.StartsWith("MSSQL$")))
{
dependentServices.Add(service.ServiceName);
}
Mark Freedman
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users