From: Iain Patterson Date: Wed, 4 Apr 2012 21:00:08 +0000 (+0100) Subject: Removed run hack. X-Git-Tag: v2.11~1 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;ds=sidebyside;h=7b85809e2f4f36f1cb587e255c72409b06d549a9;hp=7b85809e2f4f36f1cb587e255c72409b06d549a9;p=nssm.git Removed run hack. 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. ---