programmatically removing a service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to write a program that can remove a windows service and I do
not wish to use the windows installer. Can someone point me in the right
direction?
Thanks
 
J Childs said:
I would like to write a program that can remove a windows service and I do
not wish to use the windows installer. Can someone point me in the right
direction?
Thanks
This program exists it's called sc.exe (Service Controller) and included
with the system, just call it using Process.Start using the correct
argments.
run sc from the command line to get a list of options.

Willy.
 
J Childs said:
I would like to write a program that can remove a windows service and I do
not wish to use the windows installer. Can someone point me in the right
direction?
Thanks

A service is nothing more than a bunch of registry entries. Look at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\[whatever]

David
 
Back
Top