Hi,
I've been trying to
create my own dialog (similar to the InstallDirDlg) to display the default
install path with a browse button (to launch the BrowseDlg) if needed. My dialog
looks like this:
<Dialog
Id="TargetPathDlg" Width="370" Height="270" Title="title"
TrackDiskSpace="yes">
[...]
[...]
<Control
Id="Browse" Type="PushButton" X="304" Y="50" Width="56" Height="17"
Text="Browse">
<Publish Property="_BrowseProperty" Value="[INSTALLDIR]">1</Publish>
<Publish Event="SpawnDialog" Value="BrowseDlg">1</Publish>
<Condition Action="">Installed</Condition>
</Control>
<Control Id="Location" Type="Text" X="133" Y="50" Width="164" Height="17" Text="[INSTALLDIR]" Property="_BrowseProperty">
</Control>
[...]
</Dialog>
<Publish Property="_BrowseProperty" Value="[INSTALLDIR]">1</Publish>
<Publish Event="SpawnDialog" Value="BrowseDlg">1</Publish>
<Condition Action="">Installed</Condition>
</Control>
<Control Id="Location" Type="Text" X="133" Y="50" Width="164" Height="17" Text="[INSTALLDIR]" Property="_BrowseProperty">
</Control>
[...]
</Dialog>
The BrowseDlg is
reused from the WiX.
However, if I press
the Browse button, the "Specified path is empty" error is shown. Please note,
that there is also a label (called 'location') which displays the current value
of the INSTALLDIR and it is correct.
What is
wrong with my dialog?
Thanks in
advance.
Mateusz
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users