Removed run hack.
authorIain Patterson <me@iain.cx>
Wed, 4 Apr 2012 21:00:08 +0000 (22:00 +0100)
committerIain Patterson <me@iain.cx>
Wed, 4 Apr 2012 21:00:08 +0000 (22:00 +0100)
Previously we used to attempt to run as a service only when the "run"
argument was given, and printed a usage message if no arguments were
provided.

A more appropriate strategy is to check for StartServiceCtrlDispatcher()
returning ERROR_FAILED_SERVICE_CONTROLLER_CONNECT, as that means the
application is not running in a service context.

As a result we no longer write the undocumented "run" argument to the
registry when installing a service.  Technically this means that we
sacrifice backward compatibility with older versions.


No differences found