I have created a C# service using the VS2005 template. It works fine however the description of the service is blank in the Windows Services control applet.
+6
A:
Create a ServiceInstaller and set the description
private System.ServiceProcess.ServiceInstaller serviceInstaller =
new System.ServiceProcess.ServiceInstaller();
this.serviceInstaller.Description = "Handles Service Stuff";
Nick
2009-01-27 21:16:05
Just to add to this, you can also setserviceInstaller.DisplayName = "Nicer Display Name";
CapBBeard
2009-01-27 21:21:41
exxelent. I was thinking some coding would be requrired ah-la this solution... http://www.codeproject.com/KB/dotnet/dotnetscmdescription.aspx perhaps this is only necessary for VS2003 ?
Michael Dausmann
2009-07-20 01:26:35
+1
A:
Also you could, create a ServiceInstaller and in the properties window of the Service installer you will see a Description Property you can set. If you don't want to code it.
I'm pretty sure I tried setting every description property in the service and service installer and none of them seemed to work. Maybe I missed this one.
Kevin Gale
2009-03-05 22:42:37