I created a ServiceApplication using Delphi XE6
When I use the command install
(at the prompt) the application is installed correctly and the service can be started.
But I need to install 4 instances of the same service on the same PC
For this I used the "sc" command where you can define the name of each instance
When I use the "sc" command, the services are installed correctly, but none of them start
Example of the install command:
c:\service1\service.exe /install
Examples of sc commands:
sc.exe create Service1 binPath= "c:\service1\service.exe" DisplayName= "Service1" start= auto
sc.exe create Service2 binPath= "c:\service2\service.exe" DisplayName= "Service2" start= auto
sc.exe create Service3 binPath= "c:\service3\service.exe" DisplayName= "Service3" start= auto
sc.exe create Service4 binPath= "c:\service4\service.exe" DisplayName= "Service4" start= auto
The service works with the "sc" command if I use its original name
How can I create a Delphi service that accepts this type of situation?