I can only imagine I have gone blind looking through the .NET documentation.
I have a Windows Service that installs and runs wonderfully.
However, I am a loss as to how to set the "description" text on the Service.
I have browsed through ServiceController, ServiceBase, ServiceInstaller
..etc.
Does anyone here know where this mysterious method/property may be hiding?
OR is it possible that the need to set the description of the Windows Service
was overlooked when the .NET System.ServiceProcess namespace was designed?
Thanks!
Hi Dan,
Try applying the ServiceProcessDescriptionAttribute from the
System.ServiceProcess namespace on the service class, it might do the trick
Eg
[ServiceProcessDescriptionAttribute("My Private Service")]
public class MyService:ServiceBase
{
....
}
> However, I am a loss as to how to set the "description" text on the
> Service. I have browsed through ServiceController, ServiceBase,
[quoted text clipped - 4 lines]
> Windows Service was overlooked when the .NET System.ServiceProcess
> namespace was designed?
Yes, it seems that they forgot this detail. There are quite a lot of
articles and discussion threads about this problem. Here is one of them:
http://www.codeproject.com/dotnet/dotnetscmdescription.asp
DanL - 04 Oct 2004 16:05 GMT
Thank you very much for the article reference! This is precisely what I was
seeking.
DanL
> > However, I am a loss as to how to set the "description" text on the
> > Service. I have browsed through ServiceController, ServiceBase,
[quoted text clipped - 8 lines]
> articles and discussion threads about this problem. Here is one of them:
> http://www.codeproject.com/dotnet/dotnetscmdescription.asp