openmicroscopy/openmicroscopy — pull request #609 by bpindelski (2013-01-15 10:13:46+00:00)
Title: Improvements to windows service user (see #10095) (rebased onto develop)

This is the same as gh-589 but rebased onto develop.

----

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.

Relevant doc PR: https://github.com/openmicroscopy/ome-documentation/pull/198