Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom Python package which we are installing to several Windows platforms (XP, 2003, 2008). During setup, this command is run which registers a service:

python.exe install

What is the correct way to remove services created this way? I know that I can use sc.exe but should be a last resort.

share|improve this question
up vote 1 down vote accepted

First, There should be no problem in removing the service with sc.

Also, Check in the add remove programs. Most packages that install in this way put entry in the add/remove programs in control panel.

Run the python.exe --help and see the output. or even just python.exe without any parameters. Most packeges will print uninstall information.

share|improve this answer

Have a look inside, there might be a listing of verbs, one of which can be "uninstall" or "remove"

python code is extremely easy to read

share|improve this answer

Removing services using sc.exe is perfectly fine and supported.

share|improve this answer


python.exe remove

worked for me. Note that I had to run from an Adminstrator's Command Prompt to either install or remove the service.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.