Subscribe events
In the following sections, we'll look at the Subscribe
element.
ScriptInProgress
You can subscribe a Text
control to the ScriptInProgress
event so that its text is only shown during the "immediate" phase of the 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 next example, all it does is show some text telling the user that things are gearing up.
Here, we have a dialog called ProgressDlg
that is shown during the InstallExecuteSequence
. It contains the following markup:
<?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <UI> <Dialog Id="ProgressDlg" Width="370" Height="270" Title="Awesome Software" Modeless="yes"> <Control...