
ashahidi1.5524917490257585E12 asked a question.
IIS_VERSION Check?
I've looked in the InstallShield help which says that the IIS_VERSION property contains the IIS version of the machine you are using.
I'm trying to install to both Windows XP and 2003 systems so I need something to check which version of IIS is running.
Here's what I have currently where I'm checking the value of IIS_VERSION and outputting it to a text file. This currently returns back nothing for the IIS_VERSION property. Does anybody have an idea why I'm not getting a value back?
Set iisinfo = GetObject("IIS://localhost/W3SVC/Info")
Dim x, versionNumber, a, outputText
x = Session.Property("IIS_VERSION")
a = Len(x)
versionNumber = Right(x, a)
Dim objFSO, objFSOText, objFile
Dim strDirectory, strFile
strFile = "C:\Output.txt"
outputText = "x: " & x & " a: " & a & " versionNumber: " & versionNumber
' Create the File System Object
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile(strFile)
objFile.WriteLine(outputText)
objFile.Close
Secondly, my code is being called after the AppSearch gets executed.
MsgBox "x = " & x
after your Session.Property line, does a value show up? (For example, I'm not sure what your code that calls the Right function is doing, so looking at the original value might be useful.)