How to find where a service is installed to? C#
Is it possible to find out through .Net whereabouts a service is installed to?
var temp = from sc in ServiceController.GetServices()
where sc.ServiceName == "MSSQL$SQLEXPRESS"
select sc;
However the servic开发者_开发知识库econtroller doesn't give me the path I want, notably the "Path to Execute" found in the service properties dialog.
I used this code
精彩评论