Q
QSIDeveloper
I have a Windows service that we need to have multiple instances running. We
achieve this by using InstallUtil Service.exe /name="SomeServiceName". I
need to know the name of the instance of the service that is running at
runtime, the name displayed in the Services UI. If I examine ServiceName at
runtime I do not get the name assigned by InstallUtil that is shown in the
services UI nor do I get the default name assigned by the ServiceInstaller
class. Is there some way to retrieve this information at runtime?
achieve this by using InstallUtil Service.exe /name="SomeServiceName". I
need to know the name of the instance of the service that is running at
runtime, the name displayed in the Services UI. If I examine ServiceName at
runtime I do not get the name assigned by InstallUtil that is shown in the
services UI nor do I get the default name assigned by the ServiceInstaller
class. Is there some way to retrieve this information at runtime?