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

Brian Curtin brian.curtin at gmail.com
Tue Feb 16 05:50:26 CET 2010


On Mon, Feb 15, 2010 at 18:10, News123 <news123 at free.fr> wrote:

> Hi,
>
> 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.
>
> Thans in advance and bye
>
>
> N <http://mail.python.org/mailman/listinfo/python-list>
>
There is nothing like that in the stdlib, so calling instserv via Popen may
be your best bet.

"sc create" may also be helpful to you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100215/3e7205ba/attachment.html>


More information about the Python-list mailing list