Hi, I wish to enable an "OK" button if the folder path choose by user does not exist on the machine and disable the "OK" button if the folder already exist. In order words, the user only can create the target folder if it does not exist on the machine. Following are my code :
<Dialog Id="BrowseDlg" Width="430" Height="270" Title="$(loc.BrowseDlg_Title)"> <Control Id="PathEdit" Type="PathEdit" X="25" Y="202" Width="320" Height="18" Property="_BrowseProperty" Indirect="yes" /> <Control Id="OK" Type="PushButton" X="240" Y="243" Width="56" Height="17" Default="yes" Text="$(loc.WixUIOK)" Disabled="yes"> <Condition Action="enable">???????????????</Condition> <Publish Event="SetTargetPath" Value="[_BrowseProperty]">1</Publish> <Publish Event="EndDialog" Value="Return">1</Publish> </Control> What can i fill into the condition ( ???????????? ) ? Cheers! -- View this message in context: http://www.nabble.com/How-to-enable-and-disable-a-control-button-depending-on-result-of-a-condition---tf3625571.html#a10123953 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users