globaleaks / APAF

Anonymous Python Application Framework
33 stars 15 forks source link

Windows Autostart (win32 services autostart) #17

Open fpietrosanti opened 12 years ago

fpietrosanti commented 12 years ago

Apaf should provide support to register the APAF application as a Window Services with automatic startup on boot and auto-restart in case of failure (provided by windows service manager).

An APAF developer should be provided an API to interact with the registration of autostart of the APAF application as a services:

fpietrosanti commented 12 years ago

Creating a windows services links:

http://www.py2exe.org/index.cgi/py2exeAndWindowsServices (seems buggy) http://islascruz.org/html/index.php?gadget=StaticPage&action=Page&id=6 http://code.activestate.com/recipes/576451-how-to-create-a-windows-service-in-python/

fpietrosanti commented 12 years ago

In order to require Administrative privileges to enable auto-start on Vista we must use UAC, by creating a custom MANIFEST with MT.exe http://stackoverflow.com/questions/195109/running-compiled-python-py2exe-as-administrator-in-vista