Service installation with sc.exe

Asked

Viewed 1,184 times

1

I created a Serviceapplication using Delphi XE6

When I use the command install (no 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 command "sc" where it is possible to define the name of each instance

When I use the "sc" command the services are installed correctly, but none of them starts

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 service at Delphi that accepts this kind of situation?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.