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 (15 chapters)
14
Index

Setting up a website to use SSL


Secure Sockets Layer (SSL) is a protocol that uses certificates and keys to encrypt data while it travels over a network. This way, private information is kept secret between two parties. WiX gives us both a way to install certificates to the keystores of the target machine and to associate one of those certificates with our website during installation to enable SSL.

In this recipe, we'll create a self-signed certificate and install it to the Trusted Root Certification Authorities and Personal keystores. We'll then install a website and bind it to the certificate. In a real-world scenario, you will have your certificate signed by a globally trusted certificate authority. However, for demonstration purposes, self-signing works best.

Getting ready

To prepare for this recipe, perform the following steps:

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

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