Skip to content

Commit

Permalink
Added test custom cancel dialogue
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjaffe37 committed May 8, 2024
1 parent 9dd8b96 commit e6c9d0d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions wix/Main.wxs.template
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@
<Publish Dialog="CustomInstallScopeDlg" Control="Back" Event="NewDialog"
Value="LicenseAgreementDlg" />
<?endif?>
<Publish Dialog="WelcomeDlg" Control="Cancel" Event="NewDialog" Value="CustomCancelDialog"
Order="3" />

<Publish Dialog="CustomInstallScopeDlg" Control="Next" Event="DoAction"
Value="CustomSetPerMachineFolder" Condition='WixAppFolder="WixPerMachineFolder"' Order="1" />
Expand Down Expand Up @@ -361,6 +363,20 @@
</Dialog>

</UI>
<Fragment>
<UI Id="CustomCancelDialogUI">
<Dialog Id="CustomCancelDialog" Width="260" Height="85" Title="!(loc.CancelDlg_Title)">
<Control Id="Text" Type="Text" X="48" Y="15" Width="194" Height="30" NoPrefix="yes" Text="!(loc.CancelDlgText)" />
<Control Id="No" Type="PushButton" X="132" Y="57" Width="56" Height="17" Default="yes" Cancel="yes" Text="!(loc.WixUINo)">
<Publish Event="EndDialog" Value="Return" />
</Control>
<Control Id="Yes" Type="PushButton" X="72" Y="57" Width="56" Height="17" Text="!(loc.WixUIYes)">
<Publish Event="EndDialog" Value="Exit" />
</Control>
<Control Id="Icon" Type="Icon" X="15" Y="15" Width="24" Height="24" ToolTip="!(loc.CancelDlgIconTooltip)" FixedSize="yes" IconSize="32" Text="!(loc.CancelDlgIcon)" />
</Dialog>
</UI>
</Fragment>
<!-- Define the directory structure -->
<?if $(env.Platform)=x86?>
<StandardDirectory Id="ProgramFilesFolder">
Expand Down

0 comments on commit e6c9d0d

Please sign in to comment.