I searched the whole web. And searched all threads concerning NT Service in this forum and I found the exact same question that I'm asking myself and you guys.
Since nobody answered the other thread, I was hoping that maybe now the answer could come up. Tks in advance, here it goes:
How can I tell wheter a service is already installed or not?
Something like this:
I need this because the user that is viewing my vb application wants to know wheter it is installed or not. If not, he clicks the button install and ok! I can't make the user go to Settings -> Control Panel and look for the service... I must be able to tell the user this information!VB Code:
' I made up this IsInstalled property of coarse just to show you what I need. Sub cmdInstallService_Click() If NTService.IsInstalled = False Then NTService.Install End If End Sub
Tks![]()




Reply With Quote