win32serviceutil.py · GitHub
gist.github.com › dmiyakawa › 375b3155118b713ac894d0print "Installing service %s" % (serviceName,) # Note that we install the service before calling the custom option # handler, so if the custom handler fails, we have an installed service (from NT's POV) # but is unlikely to work, as the Python code controlling it failed. Therefore # we remove the service if the first bit works, but the second ...