Enumerate IIS Websites

Got a problem you cannot solve? Try here.
Post Reply
skibbs
Posts: 56
Joined: Thu Apr 27, 2006 5:06 pm
Location: Redmond, WA
Contact:

Enumerate IIS Websites

Post 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
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
MarkRichards
Posts: 47
Joined: Tue Apr 18, 2006 8:39 am

Post 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.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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!
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
skibbs
Posts: 56
Joined: Thu Apr 27, 2006 5:06 pm
Location: Redmond, WA
Contact:

Post 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
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Sure, why not.
Also, an example C++ plug-in has been posted in the plug-ins forum.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply