Problem:
In WiX UI MaintenanceWelcomeDlg in InstallUISequence section the following statement defined:
<installuisequence>
<show dialog="MaintenanceWelcomeDlg" before="ProgressDlg">Installed AND NOT RESUME AND NOT Preselected</show>
</installuisequence>
<Show Dialog="MaintenanceWelcomeDlg" is not marked with Overridable="yes"attribute.
Result:
It is not possible to change condition for show this dialog in my custom InstallUISequence.
The following code will rise "The InstallUISequence table contains an action 'MaintenanceWelcomeDlg' that is declared in two different locations" error:
<installuisequence>
<show dialog="MaintenanceWelcomeDlg" before="ProgressDlg">NOT PATCH AND Installed AND NOT RESUME AND NOT Preselected</show>
<show dialog="PatchWelcomeDlg" before="ProgressDlg">PATCH AND Installed AND NOT RESUME AND NOT Preselected</show>
</installuisequence>
The following code does not works, and shows MaintenanceWelcomeDlg even in PATCH mode:
<installuisequence>
<show dialog="MaintenanceWelcomeDlg" overridable="yes" before="ProgressDlg">NOT PATCH AND Installed AND NOT RESUME AND NOT Preselected</show>
<show dialog="PatchWelcomeDlg" before="ProgressDlg">PATCH AND Installed AND NOT RESUME AND NOT Preselected</show>
</installuisequence>
In this case PatchWelcomeDlg is shown after the Dialogs sequence initiated by MaintenanceWelcomeDlg.
Additional Information:
UI Section defined as:
<ui id="user-content-CustomDialogSequence">
<uiref id="user-content-WixUI_Mondo">
<dialogref id="user-content-PatchWelcomeDlg"></dialogref></uiref></ui>
PatchWelcomeDlg defined as:
<ui>
</ui>
<InstallUISequence>
<Show Dialog="MaintenanceWelcomeDlg" Overridable="yes" Before="ProgressDlg">NOT PATCH AND Installed AND NOT RESUME AND NOT Preselected</Show>
<Show Dialog="PatchWelcomeDlg" Before="ProgressDlg">PATCH AND Installed AND NOT RESUME AND NOT Preselected</Show>
</InstallUISequence>
I've fixed this problem for me by replase
<show dialog="MaintenanceWelcomeDlg" before="ProgressDlg">Installed AND NOT RESUME AND NOT Preselected</show>
in MaintenanceWelcomeDlg to
<show dialog="MaintenanceWelcomeDlg" overridable="yes" before="ProgressDlg">Installed AND NOT RESUME AND NOT Preselected</show>
and rebuild WiX from sources (version 3.0).
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).