473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Windows Service Descriptions

I have created a simply Windows Service which installs, starts, stops, etc
just fine. I'm confused by the fact that even though the service shows up in
the Computer Management Services list there is no Description and I am unable
to identify a property in the ServiceBase or any other class for that matter
in my Windows Service Project that bothers to make mention of how to go about
setting the Description.

Does anyone know how to do go about doing this?

Thanks,
--
David Norris
Jul 21 '05 #1
3 1864
It's the ChangeServiceConfig2 Win32 API that lets you set that. Other MSI
tools that install Services use the Windows Installer ServiceInstall table
and its Description entry.
--
Phil Wilson
[Microsoft MVP-Windows Installer
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"David Norris" <dn*****@msn.com.(donotspam)> wrote in message
news:09**********************************@microsof t.com...
I have created a simply Windows Service which installs, starts, stops, etc
just fine. I'm confused by the fact that even though the service shows up
in
the Computer Management Services list there is no Description and I am
unable
to identify a property in the ServiceBase or any other class for that
matter
in my Windows Service Project that bothers to make mention of how to go
about
setting the Description.

Does anyone know how to do go about doing this?

Thanks,
--
David Norris

Jul 21 '05 #2
Yeah. I get that. I'm just wondering within the context of the .NET Windows
Service Project how you go about setting the Description. Doesn't look like
you can and I'll have to opt in for P/Invoke.
--
David Norris
"Phil Wilson" wrote:
It's the ChangeServiceConfig2 Win32 API that lets you set that. Other MSI
tools that install Services use the Windows Installer ServiceInstall table
and its Description entry.
--
Phil Wilson
[Microsoft MVP-Windows Installer
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"David Norris" <dn*****@msn.com.(donotspam)> wrote in message
news:09**********************************@microsof t.com...
I have created a simply Windows Service which installs, starts, stops, etc
just fine. I'm confused by the fact that even though the service shows up
in
the Computer Management Services list there is no Description and I am
unable
to identify a property in the ServiceBase or any other class for that
matter
in my Windows Service Project that bothers to make mention of how to go
about
setting the Description.

Does anyone know how to do go about doing this?

Thanks,
--
David Norris


Jul 21 '05 #3
As of yet you can't without P-Invoke or some Registry manipulation (maybe both?).

--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"David Norris" <dn*****@msn.com.(donotspam)> wrote in message news:86**********************************@microsof t.com...
Yeah. I get that. I'm just wondering within the context of the .NET Windows
Service Project how you go about setting the Description. Doesn't look like
you can and I'll have to opt in for P/Invoke.
--
David Norris
"Phil Wilson" wrote:
It's the ChangeServiceConfig2 Win32 API that lets you set that. Other MSI
tools that install Services use the Windows Installer ServiceInstall table
and its Description entry.
--
Phil Wilson
[Microsoft MVP-Windows Installer
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"David Norris" <dn*****@msn.com.(donotspam)> wrote in message
news:09**********************************@microsof t.com...
>I have created a simply Windows Service which installs, starts, stops, etc
> just fine. I'm confused by the fact that even though the service shows up
> in
> the Computer Management Services list there is no Description and I am
> unable
> to identify a property in the ServiceBase or any other class for that
> matter
> in my Windows Service Project that bothers to make mention of how to go
> about
> setting the Description.
>
> Does anyone know how to do go about doing this?
>
> Thanks,
> --
> David Norris


Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Michael Muller | last post by:
Is there currently any plan to introduce static typing in any future version of Python? (I'm not entirely sure that "static typing" is the right term: what I'm talking about is the declaration of...
0
by: big A | last post by:
I am experiencing an issue that i have seen posted with various descriptions but lacks any answers. I have .Net Framework 1.1 services that run without issue on windows 2000 professional; however...
1
by: PMCG | last post by:
Hi Is it possible to decorate web service parameters with attributes that can add documentation elements to the complex type for a web method in WSDL, something similar to what the...
6
by: David Norris | last post by:
I have created a simply Windows Service which installs, starts, stops, etc just fine. I'm confused by the fact that even though the service shows up in the Computer Management Services list there...
0
by: Allen St.Clair | last post by:
Hello. Now, I need to create SOAP package manually. But I dunno how to let VS IDE get the descriptions of my Web Service. For example, there is a Web Service (a.asmx) and some method in it....
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
0
by: JM | last post by:
Visual Web Service Client is an easy-to-use, interactive solution to testing and manipulating .Net and Java Web Services. VWS is your one- stop shop for managing multiple web services and getting...
6
by: Brybot | last post by:
I am trying to allow HTTP POST file uploads to my web service. Currently I have it working perfectly for a SOAP/XML request reading in a byte using MemoryStream/FileStream but I cannot figure out...
1
by: pit_the_kid | last post by:
Hello, I want to get the serviceaccount of an already installed windows service. With the class Service.Controller (under System.ServiceProcess) I can read a couple of useful properties of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.