Enumerate IIS Websites

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

Enumerate IIS Websites

Postby skibbs » Mon May 22, 2006 7:09 pm

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:

Postby MichaelNesmith » Mon May 22, 2006 9:23 pm

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

MarkRichards
Posts: 47
Joined: Tue Apr 18, 2006 8:39 am

Postby MarkRichards » Tue May 23, 2006 7:51 am

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:

Postby MichaelNesmith » Tue May 23, 2006 3:34 pm

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

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

skibbs
Posts: 56
Joined: Thu Apr 27, 2006 5:06 pm
Location: Redmond, WA
Contact:

Postby skibbs » Wed May 24, 2006 1:25 pm

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:

Postby MichaelNesmith » Wed May 24, 2006 1:26 pm

Sure, why not.
Also, an example C++ plug-in has been posted in the plug-ins forum.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 191 guests