[python-win32] Allowing service to interact with desktop

Mark Hammond mhammond at skippinet.com.au
Thu Dec 9 01:49:05 CET 2004


> Is there a way to set my python windows service to run witht the
> option "Allowing service to interact with desktop" turned on at
> installation time? I know how to enable it from the windows Services
> UI, but I'm hoping there is an option similar to "--startup auto" (to
> set the service to start automatically when the machine starts) so
> that I can do it from the command-line.

How did you find out about "--startup"?  Running "your_service.py" with no
args prints:

Options for 'install' and 'update' commands only:
 --username domain\username : The Username the service is to run under
 --password password : The password for the username
 --startup [manual|auto|disabled] : How the service starts, default = manual
 --interactive : Allow the service to interact with the desktop.
...

I think the last one shown is what you are after.

Be sure to look for the MSDN documentation on this flag - it may not do
exactly what you want ("interact with the desktop" is slightly
misleading...)

Mark.



More information about the Python-win32 mailing list