I need to get which .exe file that a Windows Service is pointing at using C#. The name of the service comes from userinput and then the user can if he wants to delete the Service. However I want to logg what is beeing deleted so that if the user deletes the wrong service I could always recreate the service for him. I've gotten the Service Name, Display Name and so on out already with the ServiceController class, but I can't seem to find anywhere where it says that I can get the target file for the service?