471,349 Members | 1,266 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 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 1769
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Michael Muller | last post: by
6 posts views Thread by David Norris | last post: by
4 posts views Thread by tshad | last post: by
1 post views Thread by pit_the_kid | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.