Hi

I have created two custom dialogs but the same thing is happening on both so I 
will just talk about the first one.

I have a custom dialog that I ask for the users SQL Server connection string 
information (i.e. server name, database name, if using windows authentication 
or sql authentication (with username/password for the latter)

In product.wxs I pre set a couple of properties:
<Property Id="DATABASE_WINDOWSAUTHENTICATION" Secure="yes" Value="1"/>
<Property Id="DATABASE_AUTHENTICATIONREQUIRED" Secure="yes" Value="0"/>
<Property Id="DATABASE_TEST_CONNECTION" Secure="yes" Value="0"/>

UI section I set the sequence for the Next button to move on:
<Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" 
Value="SQLServerConnectionDlg">LicenseAccepted = "1"</Publish>
<Publish Dialog="SQLServerConnectionDlg" Control="Back" Event="NewDialog" 
Value="LicenseAgreementDlg">NOT Installed</Publish>
<Publish Dialog="SQLServerConnectionDlg" Control="Next" Event="NewDialog" 
Value="IISWebSiteInfoDlg">NOT Installed AND SQL_CONTINUE_TO_NEXT_PAGE = 
"1"</Publish>

A custom action I call in the SQLServerConnectionDlg:
<CustomAction Id="CA_DataBaseTestConnection" BinaryKey="BIN_CustomAction" 
DllEntry="TestSqlConnection" Execute="immediate" Return="check" />

The actual SQLServerConnectionDlg.wxs code for the Next button:
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" 
Default="yes" Text="!(loc.WixUINext)" TabSkip="no">
          <Condition Action="disable"><![CDATA[(DATABASE_WINDOWSAUTHENTICATION 
= "1" AND DATABASE_SERVERNAME = "" OR DATABASE_RNAME = "") OR 
(DATABASE_WINDOWSAUTHENTICATION = "0" AND DATABASE_USERNAME = "" OR 
DATABASE_PASSWORD = "" OR DATABASE_SERVERNAME = "" OR DATABASE_NAME = 
"")]]></Condition>
          <Condition Action="enable"><![CDATA[(DATABASE_WINDOWSAUTHENTICATION = 
"1" AND DATABASE_SERVERNAME <> "" AND DATABASE_NAME <> "") OR 
(DATABASE_WINDOWSAUTHENTICATION = "0" AND DATABASE_USERNAME <> "" AND 
DATABASE_PASSWORD <> "" AND DATABASE_SERVERNAME <> "" AND DATABASE_NAME <> 
"")]]></Condition>
          <Publish Event="DoAction" Value="CA_DataBaseTestConnection" 
Order="1">1</Publish>
          <Publish Property="DATABASE_CREATE_SCHEMA" 
Value="[DATABASE_CREATE_SCHEMA]" Order="2">1</Publish>
          <Publish Property="DATABASE_TEST_CONNECTION" 
Value="[DATABASE_TEST_CONNECTION]" Order="3">1</Publish>
          <Publish Property="SQL_CONTINUE_TO_NEXT_PAGE" Value="0" 
Order="4"><![CDATA[DATABASE_TEST_CONNECTION = "0"]]></Publish>
          <Publish Property="SQL_CONTINUE_TO_NEXT_PAGE" Value="1" 
Order="4"><![CDATA[DATABASE_TEST_CONNECTION = "1"]]></Publish>
        </Control>

The custom action brings up a message box saying "Company database doesn't 
exist will be created"
Click OK on the message box and I expect to goto the next panel... it doesn't 
it stays on the SQL panel

If I click Next again, I get the same message box "database will be created 
blah" click OK on the message box THEN it goes to the next panel...

Why does it take 2 clicks on the Next button to move ahead to the next 
installer panel?

Driving me NUTS...

Thanks,

Steve

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to