I can get the list of Web Sites using JavaScript or VBScript and enumerating through like:
Dim iisObj Set iisObj = GetObject("IIS://localhost/w3svc") For Each obj In iisObj If obj.Class = "IIsWebServer" Then ' Do something with the site. End If Next Set iisObj = Nothing
What I am working with now is a language that apparently doesn't support enumerating through collections (For Each)...I'm using PascalScript with InnoSetup. I have it setup now to write out a VBScript that does what I want, but I would rather NOT have the
installer write a script that writes the results to another file that the installer then reads the results from just to get the list of sites. I have Googled many times for a solution for this and I am at a loss. How could I go about getting the results
I want?