Michael:

From what I've seen, the value of the Property doesn't update until the control loses focus.  If you have other textboxes on that dialog, you could try putting those after the database textbox so the user has to tab to those first.  Otherwise, you could use a maskededit control (see below for a sample and a good link) or as a last resort create a custom action that checks the value of the database property.

<Control Id="CDKeyEdit" Type="MaskedEdit" X="45" Y="159" Width="250" Height="16" Property="PIDKEY" Text="[PIDTemplate]" />

<Property Id="PIDTemplate"><![CDATA[12345<### ###>@@@@@]]></Property>

Take a look at this link for more information: http://msdn.microsoft.com/library/default.asp?url="">

Dana




On 7/27/06, Michael Cline < [EMAIL PROTECTED]> wrote:
I'm assuming that this is a lack of understanding on my part and is more of
an MSI question than Wix itself.

I have a dialog which requires you to enter the Database Name before you can
click on Next.  I have a condition on the Next Button that makes sure the
Database Name is entered.

<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17"
Text="!(loc.WixUINext)">
          <Publish Event="NewDialog"
Value="[WixUI_DatabaseSetupDlg_Next]">1</Publish>
          <Condition Action="" = ""]]> OR
<![CDATA[DATABASESERVERNAME = ""]]></Condition>
          <Condition Action="" <> ""]]> AND
<![CDATA[DATABASESERVERNAME <> ""]]></Condition>
        </Control>

This works fine but requires the user to tab out of the field before it is
enabled.  Since the installer may just type in the box and want to click on
the Next button it is not enabled.  The property doesn't get set until the
text field is exited.

Is there any way to update the property with every key press?

Should I handle this in a message from the next saying 'Please enter a
database'?

Thanks,

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to