Archive: Setup Default Web Site in IIS


Setup Default Web Site in IIS
Hello!
My installer should install a web application which use IIS as webserver. I would like to setup IIS during the installation, but I can't find a way to this in a batch-script.

I need to setup a web site, set home directory, default document, application mappings. I know how to this in the Internet Information Services, but I would like tp run a batch-script in the background.

Anyone?


You can execute a VB script that calls the relevant APIs. If you search the forum for IIS and the Wiki for "virtual directory", you'll find a few topics with examples.

This one shows how to setup a virtual directory:

http://nsis.sourceforge.net/wiki/Set...tual_directory