Subscribe events

In the following sections, we'll look at the Subscribe element. We covered several subscribable control events in the last chapter, including those used by the SelectionTree and ProgressBar. We'll take a look at some others that we missed.

ScriptInProgress

You can subscribe a Text control to the ScriptInProgress event so that its text is only shown during the "immediate" phase of InstallExecuteSequence. This is when that sequence prepares itself for its "deferred" stage by creating a rollback script containing all of the actions it will need to perform.

You'd use this technique on a progress bar dialog. As you can see in the following example, all it does is show some text telling the user that things are gearing up:

Here, we have ...

Get WiX 3.6: A Developer's Guide to Windows Installer XML 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.