I use the following dialog in my installer:
    <Dialog Id="CustomizeDlg" Width="370" Height="270" Title="[ProductName]
[Setup]" NoMinimize="yes">
      <?include Banners.wxi ?>
      <Control Id="Install" Type="PushButton" X="220" Y="250" Width="56"
Height="17" Text="Install">
        <Publish Event="NewDialog" Value="ProgressDlg" />
      </Control>
      <Control Id="Cancel" Type="PushButton" X="304" Y="250" Width="56"
Height="17"
          Cancel="yes" Text="Cancel">
        <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
      </Control>
      
      <Control Id="ProgramFilesLabel" Type="Text" X="15" Y="60" Width="300"
Height="10" TabSkip="no" Text="Choose where to install the program files:"
/>
      <Control Id="ProgramFilesEdit" Disabled="yes" Type="Edit" X="15"
Y="70" Width="270" Height="16" Property="INSTALLDIR"/>
      <Control Id="ProgramFilesBrowse"  Disabled="yes" Type="PushButton"
X="304" Y="70" Width="56" Height="17"
          Cancel="yes" Text="Browse...">
        <Publish Property="_BrowseProperty" Value="[INSTALLDIR]" />
        <Publish Event="SpawnDialog" Value="BrowseDlg">1</Publish>
      </Control>

      <Control Id="SamplesLabel" Type="Text" X="15" Y="90" Width="300"
Height="10" TabSkip="no" Text="Choose where to install thesample files:" />
      <Control Id="SamplesEdit" Disabled="yes" Type="Edit" X="15" Y="100"
Width="270" Height="16" Property="SAMPLESDIR"/>
      <Control Id="SamplesBrowse" Type="PushButton" X="304" Y="100"
Width="56" Height="17"
          Cancel="yes" Text="Browse...">
        <Publish Property="_BrowseProperty" Value="[SAMPLESDIR]" />
        <Publish Event="SpawnDialog" Value="BrowseDlg">1</Publish>
      </Control>
    </Dialog>
The problem is if I click on X(close window) button, then BrowseDlg is
opened instead of CancelDlg!
What I am doing wrong?
-- 
View this message in context: 
http://n2.nabble.com/Weird-dialog-behaviour-tp1140781p1140781.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to