Windows Service

The Windows Service is created and deployed like any regular Service application created using Delphi.

1

Install the service

Run the following command at the command line:

Install
MyServiceApp -install
2

Start the service

You can start the service from the Windows Service Manager or run:

Start
net start ServiceName
3

Change the default service name

When you create a new project, the default value for the service name is:

UniServiceModule

You can change it from ServiceModule.pas -> UniServiceModule -> Name.

4

Uninstall the service

Run the following command:

Uninstall
MyServiceApp -uninstall
circle-exclamation