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.

link|improve this question
feedback

3 Answers

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.

link|improve this answer
feedback

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

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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