If I'm reading this correctly, you're code is this:

MTPreInstallDlg

<Control 
   Id="LicenseFile" 
   Type="PushButton" 
   X="20" 
   Y="120" 
   Width="56" 
   Height="17" 
   Text="Browse">

   <Publish Property="_BrowseProperty" Value="[LICENSE_FILE]"
Order="1">1</Publish>
   <Publish Event="SpawnDialog" Value="MTBrowseDlg" Order="2">1</Publish> 
</Control>

and on your other dialog, you've got:

MTBrowseDlg

<Property Id="_BrowseProperty" Value="LICENSE_FILE" /> 

<Control 
   Id="PathEdit" 
   Type="PathEdit" 
   X="25" 
   Y="202" 
   Width="320" 
   Height="18" 
   Property="_BrowseProperty" 
   Indirect="yes" /> 


So, you've got a dialog called MTPreInstallDlg that pops open a browse
dialog. Before it does, it sets the property "_BrowseProperty" to
"[LICENSE_FILE]". I guess I don't see where you're setting LICENSE_FILE,
though. Actually, it doesn't seem like you should be setting _BrowseProperty
from your control because it's already being set with a Property element.
The "Indirect" attribute on your PathEdit says that _BrowseProperty is a
pointer to another property: LICENSE_FILE. The property element does that
for you, setting it to a property called LICENSE_FILE.

So, you might change your LicenseFile button so that it sets LICENSE_FILE to
the Id of one of your Directory elements. That way, when the user changes
the path, it sets that directory.

delete:
<Publish Property="_BrowseProperty" Value="[LICENSE_FILE]"
Order="1">1</Publish>

add:
<Publish Property="LICENSE_FILE" Value="MY_DIRECTORY" Order="1">1</Publish>


-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Browse-Dialog-tp5413342p5413828.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to