Chapter 6. Custom Actions

In this chapter, we will cover the following recipes:

  • Creating a C# custom action and referencing it in your project
  • Passing information entered by a user to a deferred custom action
  • Preventing custom action data from being displayed in the install log
  • Running an executable as a custom action without showing a console window by using CAQuietExec
  • Testing rollback custom actions with WixFailWhenDeferred

Introduction

An MSI installer has three distinct phases. The first, which is called the UI sequence, shows a graphical user interface (if you don't have one, this phase will go really fast). During this phase, the user can enter their preferences for things such as where the files will be installed, which features to include, and ...

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.