473,381 Members | 1,435 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,381 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 1861
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.