G Guest Jan 28, 2006 #1 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
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
K Kevin Spencer Jan 29, 2006 #2 It's in the System Registry. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services -- HTH, Kevin Spencer Microsoft MVP ..Net Developer Who is Mighty Abbott? A twin turret scalawag.
It's in the System Registry. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services -- HTH, Kevin Spencer Microsoft MVP ..Net Developer Who is Mighty Abbott? A twin turret scalawag.
J John Galt Jan 30, 2006 #3 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
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