This is essentially a follow up of the following question:
How to increase/decrease the number of instances of a windows service?
I've tried the following:
installutil /instance_name=instance1 mysvc.exe
The above command does the job of installing the service; and you can see the service listed in the mmc console (services.msc) as "instance1". But while debugging I've noticed that the ServiceName
property is showing the value that I set in the designer at design time.
I was expecting it to show "instance1". How to correctly resolve this problem?