openmicroscopy/openmicroscopy — pull request #589 by bpindelski (2013-01-09 14:03:59+00:00)
Title: Improvements to windows service user (see #10095)

This is a final round of changes to admin.py, only in the code executed on Windows.
This PR tackles the following issues:
1) Removal of the OMERO Windows service when incorrect password for the Log On as user provided,
2) Add option (``-w``) to specify the password for the Log On as user on the command line and not only through a config value,
3) Remove the dependency on sc.exe - all service interactions are now done by Win32 API calls,
4) Add output messages informing the user about the startup status.

To test:
- Deploy OMERO on Windows,
- Create a separate user account,
- Verify that the OMERO.master service gets created with proper credentials when using either the CLI options (``-u`` and ``-w``) or the config values,
- Verify that the service is removed when an incorrect password is provided for the separate user account.