Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

how to check if windows service is installed / VB.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
herbert - 28 Jan 2006 23:28 GMT
What is the elegant way in VB.NET to check whether a windows service is
installed or not?

How does the service controller tell this?

thanks herbert
Kevin Spencer - 29 Jan 2006 14:23 GMT
It's in the System Registry.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
Signature

HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

> What is the elegant way in VB.NET to check whether a windows service is
> installed or not?
>
> How does the service controller tell this?
>
> thanks herbert
John Galt - 30 Jan 2006 02:09 GMT
Imports System.ServiceProcess

Module Module1

   Sub Main()

       Dim services() As ServiceController =
ServiceController.GetServices()

       For Each service As ServiceController In services

           ' Do comparison here to determine if service is installed

       Next

   End Sub

End Module

> What is the elegant way in VB.NET to check whether a windows service is
> installed or not?
>
> How does the service controller tell this?
>
> thanks herbert

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.