Hi,
I am using a CI server to install multiple instances of my TopShelf
services, the services are in different locations on disk and have
different app.configs.
I have used SetDisplayName(serviceName) and
SetServiceName(serviceName) and SetInstanceName(serviceName) to make
sure the names are unique per service that gets installed.
I have 2 installed and I can only have 1 running at a time, the other
starts but throws an error: "Windows could not start the Foo.EN
(Instance: Foo.EN) service on Local Computer. Error 5: Access is
denied."
The Windows service is executing:
"C:\Foo.EN\processor\v6\Foo.Processor.exe" -instance
"Foo.Processor.EN" -displayname "Foo.Processor.EN (Instance:
Foo.Processor.EN)" -servicename "Foo.Processor.EN"
And the other:
"C:\Foo.DE\processor\v6\Foo.Processor.exe" -instance
"
Foo.Processor.DE" -displayname "
Foo.Processor.DE (Instance:
Foo.Processor.DE)" -servicename "
Foo.Processor.DE"
Which to me seems right.
I can't see anything else in the documentation I need to set to allow
me to run multiple versions?