tags:

views:

383

answers:

2

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
Just to add to this, you can also setserviceInstaller.DisplayName = "Nicer Display Name";
CapBBeard
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
+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