ServiceInstall
ServiceInstall is a command in the NSIS scripting language used to install and register a Windows service as part of a software installer. When invoked, it creates a Windows service entry in the Service Control Manager and associates it with the startup executable supplied by the installer. The command is intended for software that needs a background process to run continuously, such as daemons or background workers, and is commonly used in conjunction with a corresponding ServiceUninstall directive to remove the service during uninstallation.
The directive configures properties that determine how the service is run and managed. Typical settings include
During uninstall, the service is stopped if running and deleted from the Service Control Manager to clean