Book Image

WiX Cookbook

By : Nicholas Matthew Ramirez
1 (1)
Book Image

WiX Cookbook

1 (1)
By: Nicholas Matthew Ramirez

Overview of this book

WiX is a dialect of XML used to make installers for Windows. Its declarative style avoids the complexity and limitations of procedural code, providing you with everything you need to package up an entire application into a single MSI file. This book gives you a good overview of WiX's capabilities to develop your own installer packages with functionalities beyond those available in Windows Installer. In the recipes of this book, you will see ways in which WiX can cut down on your installation time and help you streamline your deployment processes. You will see how to make customized installer UIs, write custom actions, create shortcuts, and also set your application as the default for a file type.
Table of Contents (20 chapters)
WiX Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a virtual directory


A website in IIS maps to a directory on the computer. If there are subdirectories within that folder, they'll show up in the IIS manager too. For example, the following website has the Scripts and CSS folders inside its root folder:

If we right-click on MyWebsite and choose Explore, we'll see that the Scripts and CSS directories sit squarely within the folder that the site is mapped to:

What if we wanted to map to a directory that wasn't within the root folder of the website? Maybe it's a folder at C:\Photos. To do this, we'll need to create a virtual directory. A virtual directory simply maps to some place outside the normal website folder. In this recipe, we will add a Photos directory to the C: drive and map it as a virtual directory in IIS.

Getting ready

To prepare for this recipe, perform the following steps:

  1. Create a new setup project and name it VirtualDirectoryInstaller.

  2. Add IIsExtension to the project by right-clicking on the References node in Solution Explorer...