Adding a website to IIS that runs under your app pool

Adding a website to IIS lets us serve content, such as HTML pages, to users when they navigate to a certain URL in their browsers. In this recipe, we'll add a website that contains a Default.htm page. IIS looks for a page with this name to display first. Our website will run in a new application pool.

Getting ready

Perform the following steps to prepare for this recipe:

  1. Create a new setup project and name it WebsiteInstaller.
  2. Add IIsExtension to the project by right-clicking on the References node in Solution Explorer and going to Add Reference... | WixIIsExtension.dll | Add | OK.
  3. Add the IIsExtension namespace to the Wix element:
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"> ...

Get WiX Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.