Get path for install service

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Scenario:

I have a service which has been installed in the service component
manager.

I am writing a second program (completely unrelated to the service)
which will run stand alone. I can find all of the services on the
machine with the following line of code:

System.ServiceProcess.ServiceController[] foo =
System.ServiceProcess.ServiceController.GetServices();

My question / problem is:

Is there a way for me to use the information returned by the method
call for an instance of a service (a particular service which I know
the name) to map that back to the pathname for the installed service?

If not, does anyone have any suggestions on a different approach to the
problem???

I am using C# (and accordingly .NET)


Thanks -

Tim Burda

.



Relevant Pages

  • Re: Get path for install service
    ... > I have a service which has been installed in the service component ... > manager. ... > I am writing a second program ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: The literati amongst us.
    ... The producer was called Ken Gibson, who later became the Irish Rovers' ... idea of appearing in a Canadian show and thereby hopefully increasing ... Ken Gibson was *not* the manager; he produced their show in Vancouver in the ... I had a writing partner ...
    (soc.culture.scottish)
  • RE: File Permissions Issues
    ... writing check the status of the issue. ... Would you mind letting us know any ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ...
    (microsoft.public.dotnet.general)
  • Re: Call MethodBuilder instance from another MethodBuilder definition
    ... I am writing to check the ... Microsoft Online Community Support ... Delighting our customers is our #1 priority. ... You can send feedback directly to my manager at: ...
    (microsoft.public.dotnet.framework.clr)
  • RE: Fix 954345 does not resolve problem for VS 2008 SP1
    ... I am writing to follow up this ... issue to check if we can do any further assistance to you. ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ...
    (microsoft.public.vsnet.general)