[wix-users] How to SpawnDialog and continue wizard
Persson, Magnus (SE-TLX)
magnus.persson at assaabloy.com
Fri Sep 2 00:34:26 PDT 2016
I have a dialog where the users selection is verified when the Next
button is clicked.
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="!(loc.ButtonNext)" >
<Publish Event="DoAction" Value="CheckDatabaseFolder"
Order="1">1</Publish>
<Publish Event="SpawnDialog" Value="CopyDatabaseDlg"
Order="2">DBEXISTS="1"</Publish>
<Publish Event="NewDialog" Value="InstallDlg"
Order="3">DBEXISTS="0"</Publish>
</Control>
So when *Next* is clicked a custom action will check the existence of a
file and set the property DBEXISTS to either 1 or 0.
If the property is 1 then a question dialog is shown so the user can
select to keep the existing file or overwrite it.
That dialog will set a new property that will be a condition for the
component that copies the original file.
The dialog will also reset the DBEXISTS property in a hope to fire the
InstallDlg dialog when closed but this will not work.
If I set the condition for InstallDlg to 1 then the SpawnDialog event
will never fire even though DBEXISTS is 1.
So, my question is: how can I spawn a question dialog and then continue
the wizard afterwards?
/Magnus
More information about the wix-users
mailing list