InstallService Method
Registers the executable as a Windows service, set to start automatically. Writes the outcome to the console and returns whether it worked.
Remarks
The identity comes from AOptions; an empty name falls back to the executable base name. The registered command line is the one ServiceBinPath builds. Needs an elevated prompt.
Syntax
Unit: Sparkle.Host.Install.Win
function InstallService(const AOptions: THostServiceOptions): Boolean;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | AOptions | THostServiceOptions |