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

2010-03-02 Thread prakash jp
Code of SmallestService.py is at: http://book.opensourceproject.org.cn/lamp/python/pythonwin/ Regards -- http://mail.python.org/mailman/listinfo/python-list

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

2010-03-02 Thread coldpizza
instsrv.exe does not come with Windows by default, but I guess it should be possible to add a service using the win32 built-in `sc` command line tool. Try `sc create` from a console. The app you want to install as a service will still have to be compliant with the win32 service interface, otherwi

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

2010-03-01 Thread Eman
On Feb 15, 4:10 pm, News123 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

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

2010-03-01 Thread Chris Withers
Aahz wrote: In article <4b79e28c$0$4610$426a7...@news.free.fr>, News123 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 b

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

2010-02-19 Thread Aahz
In article <4b79e28c$0$4610$426a7...@news.free.fr>, News123 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 won

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

2010-02-15 Thread Brian Curtin
On Mon, Feb 15, 2010 at 18:10, News123 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 wonde

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

2010-02-15 Thread News123
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