ThommyB
ThommyB

Reputation: 1566

Windows selfhosted service - Setting custom service properties like description etc

A windows service has several properties like servicename, servicedisplayname, description etc. Some of these props can be set with sc.exe but not all of them.

I have several ServiceStack services and want to give them other names than the exe file and add displayname, description etc.

I was looking at the InstallUtil.exe tool, but it seems not to offer this functionality.

How can I set these props with a ServiceStack service?

Upvotes: 1

Views: 33

Answers (1)

mythz
mythz

Reputation: 143369

When you create a new Windows Service using the ServiceStack VS.NET Templates it will generate a solution layout similar to:

enter image description here

The Windows Service properties name will appear in the properties tab after clicking on serviceInstaller in the WinServiceInstaller.cs Component designer view.

Upvotes: 1

Related Questions