This is just a guess, but in your PathEdit control, you have Indirect set to
"Yes".  What is your INSTALLDIR property set to before you call the dialog?
Since it says that it is Indirect, it will try to store (and load) the value
to whatever is IN INSTALLDIR before the dialog is created.  For instance, if
INSTALLDIR is set to WIXUI_INSTALLDIR or something, then the PathEdit
control will load/save it's value in WIXUI_INSTALLDIR instead of INSTALLDIR.

On 3/20/07, Jacquet Fabian <[EMAIL PROTECTED]> wrote:

 Hi,

I'm using a dialog to change install directory.
But during installation, when it try to show the dialog, it crash with
this log error:
DEBUG: Error 2343: Specified path is empty.

Here is the dialg source:
<Dialog Id="BrowseDlg" Width="370" Height="270" Title="[ProductName]
[Setup]" NoMinimize="yes">
  <Control Id="PathEdit" Type="PathEdit" X="84" Y="202" Width="261"
Height="18" Property="INSTALLDIR" Indirect="yes" />
  <Control Id="OK" Type="PushButton" X="304" Y="243" Width="56"
Height="17" Default="yes" Text="[ButtonText_OK]">
    <Publish Event="SetTargetPath"
Value="[INSTALLDIR]"><![CDATA[1]]></Publish>
    <Publish Event="EndDialog" Value="Return"><![CDATA[1]]></Publish>
  </Control>
  <Control Id="Cancel" Type="PushButton" X="240" Y="243" Width="56"
Height="17" Cancel="yes" Text="[ButtonText_Cancel]">
    <Publish Event="Reset" Value="0"><![CDATA[1]]></Publish>
    <Publish Event="EndDialog" Value="Return"><![CDATA[1]]></Publish>
  </Control>
  <Control Id="ComboLabel" Type="Text" X="25" Y="58" Width="44"
Height="10" TabSkip="no" Text="&amp;Look in:" />
  <Control Id="DirectoryCombo" Type="DirectoryCombo" X="70" Y="55"
Width="220" Height="80" Property="INSTALLDIR" Indirect="yes" Fixed="yes"
Remote="yes">
    <Subscribe Event="IgnoreChange" Attribute="IgnoreChange" />
  </Control>
  <Control Id="Up" Type="PushButton" X="298" Y="55" Width="19" Height="19"
ToolTip="Up One Level" Icon="yes" FixedSize="yes" IconSize="16" Text="Up">
    <Publish Event="DirectoryListUp" Value="0"><![CDATA[1]]></Publish>
  </Control>
  <Control Id="NewFolder" Type="PushButton" X="325" Y="55" Width="19"
Height="19" ToolTip="Create A New Folder" Icon="yes" FixedSize="yes"
IconSize="16" Text="New">
    <Publish Event="DirectoryListNew" Value="0"><![CDATA[1]]></Publish>
  </Control>
  <Control Id="DirectoryList" Type="DirectoryList" X="25" Y="83"
Width="320" Height="110" Property="INSTALLDIR" Sunken="yes" Indirect="yes"
TabSkip="no" />
  <Control Id="PathLabel" Type="Text" X="25" Y="205" Width="59"
Height="10" TabSkip="no" Text="&amp;Folder name:" />
  <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="374"
Height="44" TabSkip="no" Text="[BannerBitmap]" />
  <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 Id="Description" Type="Text" X="25" Y="23" Width="280"
Height="15" Transparent="yes" NoPrefix="yes">
    <Text>Sélectionnez le répertoir de destination</Text>
  </Control>
  <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15"
Transparent="yes" NoPrefix="yes">
    <Text>[DlgTitleFont]Destination</Text>
  </Control>
</Dialog>

-------------------------------------------------------------------------
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