I have a windows service executable that I know is written in .NET which I need to install under a different service name to avoid a conflict. The install doesn't provide anyway to specify a service name. If I only have access to the binary, is there anyway to override the service name when I install it with installutil?
Do you have to use InstallUtil? Here are the commands to do what you want using sc:
sc create MyService binPath= "MyService.exe" DisplayName= "MyService" sc description MyService "My description"
Reference: http://support.microsoft.com/kb/251192
It is not true that InstallUtil doesn't allow you to configure the service name. I do it all the time like this
InstallUtil.exe /servicename="<service name>" "<path to service exe>"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With