View Full Version : Enumerate IIS Websites - Installscript Project

07-15-2005, 09:43 AM
Anyone that has tried to enumerate IIS websites in InstallScript knows that it is difficult at best, since there is no enumerator in InstallScript.

IIS 5.0/5.1 lists it's sites as index 1/2/3/4/5. IIS 6.0 uses what appears to be a random number for the site index (thus making for.. loop iteration bound to fail).

I found this link today for a C++ DLL that contains a real for...each kind of iterator. This allows for true enumeration of the IIS websites.

Here it is:


Installshield, if you are listening, how about adding an enumerator to InstallScript?