Hi
Have two publish elements for your next button with mutally exclusive
conditions like in my short example. I have used properties as I do not want to
hardcode the dialog sequence in the dialogs.
The example consists of three dialogs exampledlg, anotherdlg and
dialogafteranotherdlg. If the property PROPERTY_NAME exists the
dialogafteranotherdlg will be shown when next is clicked in exampledlg
otherwise anotherdlg will be shown.
You must do something similar for the back button of the
DialogAfterAnotherDlg-dialog as it should open AnotherDlg sometimes and
ExampleDlg some other times.
<UI>
<Dialog Id="ExampleDlg" Width="370" Height="270" Title="Example dialog"
TrackDiskSpace="yes">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="Next">
<Publish Event="NewDialog"
Value="[ExampleDlg_Next_ProvertyName_set]">PROPERTY_NAME</Publish>
<Publish Event="NewDialog"
Value="[ExampleDlg_Next_ProvertyName_NotSet]">NOT PROPERTY_NAME</Publish>
</Control>
</Dialog>
</UI>
<Property Id=" ExampleDlg_Next_ProvertyName_NotSet " Value="AnotherDlg" />
<Property Id=" ExampleDlg_Next_ProvertyName_set "
Value="DialogAfterAnotherDlg" />
//Peter
-----Original Message-----
From: Peter Oehlert [mailto:[email protected]]
Sent: den 9 januari 2009 22:37
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] Skip a dialog if a property is present?
Let me first apologize for what I'm sure is a n00b question:
I want a dialog to query for a configuration value that I will then put into
the .net xml config file, but if the property is already populated (say by
someone passing a command line argument to msiexec) I'd like to skip the
dialog. What is the best way to do something like this?
Thanks in advance,
Peter
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users