Window Service Description Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wrote my first window service and when I go into the services section on
the server to see it there is no description of the service and I'm wondering
where in my service code can I put the description show it shows up.

Thanks
 
Do you have a ProjectInstaller.cs file? If so, you can add it via the
Properties of the ServiceInstaller.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Big things are made up of
lots of little things.
 
I put the verbiage in the project installer description field and then
installed it on the server and when I look in the services the description is
not there, but if I go to add/remove programs and show information about the
software it shows up in the comments section.
 
I'm not sure what you're doing here. I said to add it to the properties of
the ServiceInstaller, and you said you added it to the "project installer
description field."

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Big things are made up of
lots of little things.
 
My wrong, but I'm looking at the properties of the service installer and this
is the list.
1.DisplayName
2.Helptext which is grayed out and can't type anything
3.Modifiers
4.parent
5.ServiceDependedOn
6.StartType

that is it. I don't see where I can add a description also I don't know if
it matters this is a VB.Net Service not C#.

Thanks
 
Hi MasterBlaster,

You're using the .Net platform 1.1, right? That isn't available in that
platform version. It IS available in the 2.0 platform.

It can be done, though, but only by directly editing the registry. Example:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler

This is the Key for the Print Spooler Service. It has a string value called
"Description" that contains the Description. So, you could always write
something that adds the Description to the Registry when you install the
Service.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Big things are made up of
lots of little things.
 
That is correct. I'm using 1.1 sp1. I guess I will need to wait until 2.0.

Thanks for your help.
 
Back
Top