Menu

#1957 MaintenanceWelcomeDlg->InstallUISequence problem

v3.5
closed
wixui (141)
2012-09-15
2010-03-19
No

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>


<control id="user-content-Next" type="PushButton" x="236" y="243" width="56" height="17" default="yes" text="!(loc.WixUINext)">
<publish property="WixUI_InstallMode" value="Repair">1</publish>
<publish event="SpawnWaitDialog" value="WaitForCostingDlg">CostingComplete = 1</publish>
<publish event="ReinstallMode" value="ecmus"><![CDATA[OutOfDiskSpace <> 1]]></publish>
<publish event="Reinstall" value="All"><![CDATA[OutOfDiskSpace <> 1]]></publish>
<publish event="EndDialog" value="Return"><![CDATA[OutOfDiskSpace <> 1]]></publish>
<publish event="SpawnDialog" value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</publish>
<publish event="EndDialog" value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</publish>
<publish event="EnableRollback" value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</publish>
<publish event="SpawnDialog" value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</publish>
</control>
<control id="user-content-Cancel" type="PushButton" x="304" y="243" width="56" height="17" cancel="yes" text="!(loc.WixUICancel)">
<publish event="SpawnDialog" value="CancelDlg">1</publish>
</control>
<control id="user-content-Bitmap" type="Bitmap" x="0" y="0" width="370" height="234" tabskip="no" text="!(loc.MaintenanceWelcomeDlgBitmap)">
<control id="user-content-Back" type="PushButton" x="180" y="243" width="56" height="17" disabled="yes" text="!(loc.WixUIBack)">
<control id="user-content-BottomLine" type="Line" x="0" y="234" width="370" height="0">
<control id="user-content-Title" type="Text" x="135" y="20" width="220" height="60" transparent="yes" noprefix="yes" text="!(loc.MaintenanceWelcomeDlgTitle)">
<control id="user-content-Description" type="Text" x="135" y="70" width="220" height="60" transparent="yes" noprefix="yes" text="!(loc.MaintenanceWelcomeDlgDescription)">
</control></control></control></control></control>
</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>

Discussion

  • Anonymous

    Anonymous - 2010-03-26

    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).

     
  • SourceForge Robot

    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).

     
MongoDB Logo MongoDB