How to use python to register a service (an existing .exe file)

Chris Withers chris at
Mon Mar 1 10:38:13 CET 2010

Aahz wrote:
> In article <4b79e28c$0$4610$426a74cc at>,
> News123  <news123 at> wrote:
>> Is there a python way to register new windows services.
>> I am aware of the
>> instsrv.exe program, which can be used to install services.
>> I could use subprocess.Popen to call
>> instsrv.exe "service_name" program.exe
>> but wondered, whether there's already an existing function.
> Use the win32 package.

Indeed, there's some intersting code in this area here:

...particularly in the do_install function in the latter...


Simplistix - Content Management, Batch Processing & Python Consulting

More information about the Python-list mailing list