473,396 Members | 1,853 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,396 software developers and data experts.

Setting the description for a Windows service

Hi,

Apologies for asking this again - I know it's been answered before - but I
am creating a Windows service and would like to add a description to display
in the Services MMC snap-in.

I know it's possible to do this by writing directly to the Registry:
http://www.codeproject.com/dotnet/do...escription.asp

but I seem to recall that soomeone posted a another / better way of doing
this a few months ago...

Any assistance gratefully received.

Mark
Nov 17 '05 #1
6 1139
hi,

AFAIK the best way is go directly to the registry, the other option may be
using WMI, though I have never try it.

Does anybody knows if this will be corrected in version 2?

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
Hi,

Apologies for asking this again - I know it's been answered before - but I
am creating a Windows service and would like to add a description to
display in the Services MMC snap-in.

I know it's possible to do this by writing directly to the Registry:
http://www.codeproject.com/dotnet/do...escription.asp

but I seem to recall that soomeone posted a another / better way of doing
this a few months ago...

Any assistance gratefully received.

Mark

Nov 17 '05 #2
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:ui**************@TK2MSFTNGP12.phx.gbl...
AFAIK the best way is go directly to the registry,
Fair enough.
the other option may be using WMI, though I have never try it.


That's a possibility....
Nov 17 '05 #3

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:ui**************@TK2MSFTNGP12.phx.gbl...
AFAIK the best way is go directly to the registry,


Fair enough.
the other option may be using WMI, though I have never try it.


That's a possibility....


And using the command line utility sc.exe is yet another.

Willy.
Nov 17 '05 #4
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:uU*************@TK2MSFTNGP15.phx.gbl...
And using the command line utility sc.exe is yet another.


Hm - I hadn't considered that - I'll check it out.
Nov 17 '05 #5
mdb
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in
news:uU*************@TK2MSFTNGP15.phx.gbl:
And using the command line utility sc.exe is yet another.


Not portable - I don't think that is installed by default on Win2k?? At
least it isn't on my Win2k machine (it is on WinXP.) Of course you could
probably include it as part of your setup distribution...

--
-mdb
Nov 17 '05 #6

"mdb" <m_b_r_a_y@c_t_i_u_s_a__d0t__com> wrote in message
news:Xn****************************@207.46.248.16. ..
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in
news:uU*************@TK2MSFTNGP15.phx.gbl:
And using the command line utility sc.exe is yet another.


Not portable - I don't think that is installed by default on Win2k?? At
least it isn't on my Win2k machine (it is on WinXP.) Of course you could
probably include it as part of your setup distribution...

--
-mdb


That's why I said another option. Anyway it's included with XP and higher
and it's part of the resource kits for NT4 and W2K, it's part of the
platform sdk, and available as a free download from microsoft and it's
freely distributable.

Willy.
Nov 17 '05 #7

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

Similar topics

2
by: Larry Bates | last post by:
Anybody know what variable I need to define in my class to set the long description that shows up in the Services control panel applet? _svc_name_ holds the short name...
4
by: rbt | last post by:
How does one associate a "Description" with a Windows service written in Python? I've just started experimenting with Python services. Here's my code... copied straight from Mr. Hammond's "Python...
2
by: Jim | last post by:
Hi, I've created a windows service which works just fine using C# 2002.. The problem is that I don't know how to set the Description of the Service - any ideas how to do this? Thanks, Jim
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
0
by: David Elliott | last post by:
I have been trying to re-create the project/solution files for the example Portal that came with the .NET installation to walk through the code. In an attempt to run the code from my new...
11
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
1
by: UJ | last post by:
I have written a Windows service that works just fine. The problem is when I bring up the list of services it's got the right name but there's no description and I can't figure out how to set it. ...
2
by: Greg | last post by:
Please note: I have cross posted this from Newsgroup: microsoft.public.dotnet.framework.aspnet.webservices with a few minor changes... I am having a simple problem setting up the security on my...
4
by: =?Utf-8?B?QmlsbCBNaWxk?= | last post by:
Feel free to let me know if there is a better place to post this question I'm a website developer trying to write a Windows Service, and I think I'm running into trouble due to the paradigm...
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?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.