I've found the following statement in standard WiX MaintenanceWelcomeDlg.

 

<InstallUISequence>

                <Show Dialog="MaintenanceWelcomeDlg"
Before="ProgressDlg">Installed AND NOT RESUME AND NOT Preselected</Show>

</InstallUISequence>

 

It has no attribute Overridable='yes'.

I have the following problem with that. I try to remove this dialog in my
WiX code in case of Patch mode (a). Also I try to add my custom
PatchWelcomeDialog (b) in this case.

 

<InstallUISequence>

<!-- *** a *** --> <Show Dialog="MaintenanceWelcomeDlg"
Before="ProgressDlg">NOT PATCH AND Installed AND NOT RESUME AND NOT
Preselected</Show> 

<!-- *** b *** --><Show Dialog="PatchWelcomeDlg" Before="ProgressDlg">PATCH
AND Installed AND NOT RESUME AND NOT Preselected</Show>

</InstallUISequence>

 

 

During compile I receive the error message: "The InstallUISequence table
contains an action 'MaintenanceWelcomeDlg' that is declared in two different
locations.  Please remove one of the actions or set the Overridable='yes'
attribute on one of their elements."

 

If I remove (a) statement, I receive the following dialogs sequence when I
run msp:

PatchWelcomeDlg -> (MaintenanceWelcomeDlg -> MaintenanceTypeDlg ->
VerifyReadyDlg).

 

If I set Overridable='yes' in (a) statement, I receive the following dialog
sequence when I run msp:

(MaintenanceWelcomeDlg -> MaintenanceTypeDlg -> VerifyReadyDlg) ->
PatchWelcomeDlg

 

Since MaintenanceTypeDlg is called by MaintenanceWelcomeDlg and
VerifyReadyDlg is called by MaintenanceTypeDlg what I need it is just to
remove MaintenanceWelcomeDlg from InstallUISequence in PATCH mode. But since
I can't override condition for display this dialog, I not sure, what is a
way to do it?

 

Thanks.

 

P.S.

 

PatchWelcomeDlg defined as following:

 

<Dialog Id="PatchWelcomeDlg" Width="370" Height="270" Title="Patch***
!(loc.MaintenanceWelcomeDlg_Title)">

                <Control Id="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>

 

                ......

</Dialog>

 

 

 

----------------------------------------------------------

Best Regards,

Oleksandr Y. Nechyporenko

Software Developer

CorePartners, Inc.

mail:   <mailto:onechypore...@gmail.com> alexnc69...@gmail.com

skype: AlexNc69001

ICQ:  117-504-668

 

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to