Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 setup.py 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

3 Answers 3

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 setup.py --help and see the output. or even just python.exe setup.py without any parameters. Most packeges will print uninstall information.

share|improve this answer

Have a look inside setup.py, 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

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.