Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
add comment

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.

share|improve this answer
add comment

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.