Hello all,

I need to update text of Edit control on my custom dialog from a property
that is being set by custom action. This custom control is to provide
OpenFileDialog to user and populate the Edit control with selected filename.
The property is getting set by CA but the control is not getting populated
from property untill I navigate away from my custom dialog and then come
back.

1) I want the selected filename to appear in Edit control as soon as
OpenFileDialog is closed. 
2) Also as soon as a file is selected, the installation starts and the
VerifyReadyDlg is skipped (even though its mentioned in my UI Sequence)
instead of waiting for user to click next button


Following the code for my custom dialog:

 <Dialog Id="FileBrowseDlg" Width="370" Height="270" Title="OneCore v3.1
Setup" NoMinimize="yes">
<Control Id="Next" Type="PushButton" X="236" Y="244" Width="56" Height="17"
Default="yes" Text="Next">
                    <Publish Event="EndDialog"
Value="Return"><![CDATA[CONFIGFILENAME =
"OneCoreConfiguration.xml"]]></Publish>
                </Control>
<Control Id="Back" Type="PushButton" X="176" Y="244" Width="56" Height="17"
Cancel="yes" Text="Back"/>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56"
Height="17" Cancel="yes" Text="Cancel"/>
<Control Id="ComboLabel" Type="Text" X="25" Y="58" Width="158" Height="10"
TabSkip="no" Text="Specify the location for Configuration File :" />
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374" Height="0" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="374" Height="0" />
<Control Type="Edit" Id="txtFilePath" Width="283" Height="15" X="30" Y="82"
Property="FILEEXISTS" Text="[FILEEXISTS]"/>              
<Control Type="PushButton" Id="btnChange" Width="56" Height="17" X="30"
Y="105" Text="Change...">                                      
                  <Publish Event="EndDialog"
Value="Return"><![CDATA[1]]></Publish>
</Control>
<Control Type="Text" Id="Title" Width="95" Height="15" X="11" Y="11"
Text="Configuration File Path" />
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44"
TabSkip="no" Text="!(loc.BrowseDlgBannerBitmap)"/>
            </Dialog>

FILEEXISTS is the property that is set by CA.

Following the snippet from Dialog sequence:

<Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog"
Value="LicenseAgreementDlg">1</Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath"
Value="[WIXUI_INSTALLDIR]" Order="1"></Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog"
Value="DBConnection">1</Publish>
<Publish Dialog="InstallDirDlg" Control="ChangeFolder"
Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog"
Value="BrowseDlg" Order="2">1</Publish>
<Publish Dialog="DBConnection" Control="Back" Event="NewDialog"
Value="InstallDirDlg">1</Publish>
          <!-- Display FileOpen Dialog only if Config file is not available
in the launch location -->
<Publish Dialog="DBConnection" Control="Next" Event="NewDialog"
Value="FileBrowseDlg" Order="1">NOT FILEEXISTS</Publish>
<Publish Dialog="DBConnection" Control="Next" Event="NewDialog"
Value="VerifyReadyDlg" Order="1">FILEEXISTS</Publish>
          
<Publish Dialog="FileBrowseDlg" Control="Next" Event="NewDialog"
Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="FileBrowseDlg" Control="Back" Event="NewDialog"
Value="DBConnection">1</Publish>
<Publish Dialog="FileBrowseDlg" Control="Cancel" Event="SpawnDialog"
Value="CancelDlg">1</Publish>
<Publish Dialog="FileBrowseDlg" Control="btnChange" Event="DoAction"
Value="ConfigFileCA" Order="2">2</Publish>         
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
Value="DBConnection" Order="1">NOT Installed</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
Value="MaintenanceTypeDlg" Order="2">Installed</Publish>


I am working with this last peice of puzzel to complete my installer. I am
thankful for any guidance.
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Edit-control-not-geting-updated-from-property-value-tp5886476p5886476.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to