| 1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
| 2 | <Fragment> |
| 3 | <UI Id="CustomDialog"> |
| 4 | <Dialog Id="FirstDialog" Width="100" Height="100"> |
| 5 | <Control Id="Title" Type="Text" X="0" Y="0" Width="90" Height="13" TabSkip="no" Text="FirstDialogTitle" /> |
| 6 | <Control Id="Header" Type="Text" X="0" Y="13" Width="90" Height="13" TabSkip="no" Text="FirstDialogHeader" HideCondition="Installed" DisableCondition="Installed" /> |
| 7 | </Dialog> |
| 8 | <Dialog Id="SecondDialog" Width="100" Height="100"> |
| 9 | <Control Id="Title" Type="Text" X="0" Y="0" Width="90" Height="13" TabSkip="no" Text="SecondDialogTitle" /> |
| 10 | <Control Id="OptionalCheckBox" Type="CheckBox" X="0" Y="13" Width="100" Height="40" Hidden="yes" Property="WIXUI_EXITDIALOGOPTIONALCHECKBOX" CheckBoxValue="1" Text="[WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT]" ToolTip="Optional checkbox" Help="Check this box for fun" ShowCondition="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT AND NOT Installed" /> |
| 11 | </Dialog> |
| 12 | |
| 13 | <InstallUISequence> |
| 14 | <Show Dialog="SecondDialog" Before="FirstDialog" Overridable="yes" Condition="NOT Installed" /> |
| 15 | </InstallUISequence> |
| 16 | </UI> |
| 17 | </Fragment> |
| 18 | <Fragment> |
| 19 | <UI Id="CustomUI"> |
| 20 | <DialogRef Id="FirstDialog" /> |
| 21 | <DialogRef Id="SecondDialog" /> |
| 22 | |
| 23 | <Publish Dialog="FirstDialog" Control="Next" Event="NewDialog" Value="SecondDialog" Condition="Installed AND PATCH" /> |
| 24 | |
| 25 | <InstallUISequence> |
| 26 | <Show Dialog="FirstDialog" Before="SecondDialog" Condition="Installed AND PATCH" /> |
| 27 | <Show Dialog="override SecondDialog" Before="ExecuteAction" Condition="NOT Installed" /> |
| 28 | </InstallUISequence> |
| 29 | </UI> |
| 30 | <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> |
| 31 | <Component> |
| 32 | <File Source="test.txt" /> |
| 33 | </Component> |
| 34 | </ComponentGroup> |
| 35 | </Fragment> |
| 36 | </Wix> |