Alright so i have a pretty solid idea of how to make a Windows service in python. However my endgame is to compile my script to exe and have the service install itself once the executable is clicked. Usually when you make a service you write it, and at the end include a call to the service handler like so:
def ctrlHandler(ctrlType):
return True
if __name__ == '__main__':
win32api.SetConsoleCtrlHandler(ctrlHandler, True)
win32serviceutil.HandleCommandLine(aservice)`
Then you can install it from the command line, I need some logic however to automate this process.