shows you how to do it with batch files. It might provide some info on which API or registry key informs you what is actually installed.
Does it matter if the IIS service is running, i.e. are you just checking to see if its installed or do you need it installed and the service started?
And here's a way of seeing the version of any running webserver you have access to. You will need a form with an a textbox and a command button: [tt]
Option Explicit
Private Sub Command1_Click()
MsgBox GetWebServer(Text1.Text)
End Sub
Private Function GetWebServer(strURL As String) As String
Dim results() As String
On Error GoTo NoServer
With CreateObject("InetCtls.Inet"
.OpenURL strURL
results = Split(.GetHeader(), "Server: "
GetWebServer = Split(results(1), vbCrLf)(0)
End With
On Error GoTo 0
Exit Function
NoServer:
' Only doing very simple error trap
GetWebServer = "Server not found"
on Error Goto 0
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.