More NOOB stuff follows:

The following code doesn't run in the order that I would have expected, 
based on the "Order=" parameters.

I would like to display the ConfigSQLDlg before the ConfigSMTPDlg, but this
actually 
happens in the reverse order... SMTP is first, then SQL.

Note that the checkboxes are checked by default, initially.

Also note that the SQL checkbox is disabled.  I display it on the dialog
'disabled' 
because it is a required configuration step, so the user must configure 
this before proceeding to the exit dialog.

What am I doing wrong this time?

Thanks, in advance... (again!)

Greg

<Property Id="SQL_CONFIG_SUCCEEDED" Value="0" />
<Property Id="SMTP_CONFIG_SUCCEEDED" Value="0" />
<Property Id="CONFIGSQL" Value="1" />
<Property Id="CONFIGSMTP" Value="0" />

    <UI>
      <Dialog Id="ConfigDlg" Width="370" Height="270" Title="[ProductName]
Configuration Options">
        
        <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" 
                Default="yes" Text="!(loc.WixUINext)" Cancel="yes">

          <Publish Event="SpawnDialog" Value="ConfigSQLDlg" Order="1">
            <![CDATA[CONFIGSQL = "1" AND SQL_CONFIG_SUCCEEDED = "0"]]>
          </Publish>
          
          <Publish Event="SpawnDialog" Value="ConfigSMTPDlg" Order="2">
            <![CDATA[CONFIGSMTP = "1" AND SMTP_CONFIG_SUCCEEDED = "0"]]>
          </Publish>

          <Publish Event="NewDialog" Value="WixExitDlg" Order="3">
            <![CDATA[CONFIGSMTP <> "1" AND CONFIGMYSQL <> "1"]]>
          </Publish>

        </Control>
        
        <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56"
Height="17" 
                Disabled="no" Text="!(loc.WixUICancel)">
          <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
        </Control>

        <Control Type="CheckBox" Id="cbConfigSQL" Width="125" Height="17"
X="20" Y="90" 
                Text="Configure SQL (Required)" Property="CONFIGSQL" 
Disabled="yes"
CheckBoxValue="1"  />
        <Control Type="CheckBox" Id="cbConfigSMTP" Width="213" Height="17"
X="20" Y="112" 
                Text="Configure SMTP (Optional)" Property="CONFIGSMTP" 
CheckBoxValue="1"
/>

      </Dialog>
    </UI>

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Dialogs-out-of-order-tp5177864p5177864.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to