Page 1 of 1

Enumerate IIS Websites

Posted: Mon May 22, 2006 7:09 pm
by skibbs
Is it possible to enumerate the existing IIS websites within the default InstallAware scripting environment? For example, during a normal VS.NET Web Setup Project you can select which website on the target machine you would like to install your web project underneath. I need to replicate this behavior within my InstallAware installation, will I need to resort to using a custom DLL to achieve this?

Thanks,
Matt

Posted: Mon May 22, 2006 9:23 pm
by MichaelNesmith
If this information is available in the registry, you can enumerate using the RegistryEx plug-in available on the plug-ins section of this forum.

Posted: Tue May 23, 2006 7:51 am
by MarkRichards
Enumerating registry entries is insufficient for IIS6 and later.

I've had to resort to essentially using InstallAware as a sort of bootstrapper that shells into a custom executable to do this type of work.

Posted: Tue May 23, 2006 3:34 pm
by MichaelNesmith
If you don't mind posting your executable code, we can add in this behavior to InstallAware as a plug-in for everybody to use and share!

Posted: Wed May 24, 2006 1:25 pm
by skibbs
MichaelNesmith wrote:If you don't mind posting your executable code, we can add in this behavior to InstallAware as a plug-in for everybody to use and share!


I currently am using .NET through COM interop to enumerate the IIS websites but I assume you are only interested in native code solutions. Let me know if you would like the code anyways.

Thanks

Posted: Wed May 24, 2006 1:26 pm
by MichaelNesmith
Sure, why not.
Also, an example C++ plug-in has been posted in the plug-ins forum.