I have a Windows Service app written in Delphi XE5 with StartType set to stAuto. Is there a way for the service to detect if it started automatically at bootup versus being started manually? I have a separate manager program that performs the install, start, stop, and uninstall. The service needs to know if the start came from the manager. I could have the manager make a Registry entry just prior to the manual start and use that as my test but was wondering if there is a cleaner solution.