WIX Version: 2.0.4415.0 Problem Summary: How to use the BrowseDlg twice. I use the BrowseDlg from the WiXUI library to allow the user
to specify the installation directory. I also need to allow the user to
specify a data directory. I have created a dialog to allow the user to
select the data directory. I set the PathEdit’s property to
CommonAppDataFolder. I have a Directory element with that ID. My
thought is that I would include a browse button that would display the
BrowseDlg dialog and I would get the directory that the user selected. No
can do! Upon clicking the Browse button I immediately get a 2812
error. I figure this has to do with the _BrowseProperty
but I don’t understand how this works. How do I get this to
work? <Dialog
Id="DataPathDlg" Width="370" Height="270"
Title="[ProductName] [Setup]" NoMinimize="yes"> <Control
Id="DataPathLabel" Type="Text" X="45"
Y="73" Width="100" Height="15"
TabSkip="no" Text="Data Path:" /> <Control
Id="PathEdit" Type="PathEdit" X="90"
Y="71" Width="240" Height="18"
Property="CommonAppDataFolder" /> <Control
Id="Back" Type="PushButton" X="180"
Y="243" Width="56" Height="17"
Text="[ButtonText_Back]"> <Publish
Event="NewDialog" Value="CustomizeDlg">1</Publish> </Control> <Control
Id="Next" Type="PushButton" X="236"
Y="243" Width="56" Height="17"
Default="yes" Text="[ButtonText_Next]"> <Publish
Event="SpawnWaitDialog"
Value="WaitForCostingDlg">CostingComplete = 1</Publish> <Publish
Event="NewDialog"
Value="VerifyReadyDlg">ProductID</Publish> </Control> <Control
Id="Cancel" Type="PushButton" X="304"
Y="243" Width="56" Height="17"
Cancel="yes" Text="[ButtonText_Cancel]"> <Publish
Event="SpawnDialog" Value="CancelDlg">1</Publish> </Control> <Control
Id="BannerBitmap" Type="Bitmap" X="0"
Y="0" Width="370" Height="44"
TabSkip="no" Text="[BannerBitmap]" /> <Control
Id="Description" Type="Text" X="25"
Y="23" Width="280" Height="15"
Transparent="yes" NoPrefix="yes"> <Text>Select
the path where data should be stored</Text> </Control> <Control
Id="BottomLine" Type="Line" X="0"
Y="234" Width="370" Height="0" /> <Control
Id="Title" Type="Text" X="15" Y="6"
Width="200" Height="15" Transparent="yes"
NoPrefix="yes"> <Text>[DlgTitleFont]Data
Path</Text> </Control> <Control
Id="BannerLine" Type="Line" X="0"
Y="44" Width="370" Height="0" /> <Control
Id="DataBrowse" Type="PushButton" X="275"
Y="100" Width="56" Height="17" Text="[ButtonText_Browse]"> <Publish
Event="SelectionBrowse"
Value="BrowseDlg">1</Publish> <Condition Action=""> </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