mwertz
asked on
Can you delete a service?
Is it possible to delete a windows service with .NET. If so an example would be great. I've looked at ServiceProcess.ServiceInst aller.unin stall but have not figured out how to use yet.
the installutil is part of the .net framework and can be found in
c:\windows\microsoft.net\f ramework\v 1.x.xxxx where x.xxxx is the version of the framework you use
c:\windows\microsoft.net\f
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also try RegSvcs from the .NET command prompt:
regsvcs /u AssemblyName
for help:
regsvcs /?
regsvcs /u AssemblyName
for help:
regsvcs /?
ASKER
Yes, that's correct, I'm trying to make it go away from the list of services. I already tried to delete from \CurrenControlSet\Services but it is still listed.
like I said before
InstallUtil /u yourservice.exe
this will remove it from the list
InstallUtil /u yourservice.exe
this will remove it from the list
InstallUtil /u yourservice.exe