Thanks Mike. I’m still struggling. I
am installing a Win Service (no UI) so I was thinking that I need to offer the
user the opportunity to specify the data directory during installation. The
nature of the application is that the data path cannot easily be changed once
installed. I looked at the UI library source. I
noticed that the WixU InstallDirDlg and the CustomizeDlg both use the PathEdit
control and a browse button to display the BrowseDlg. I figured I could create
a DataDirDlg that did the same thing. Unfortunately, I just don’t know
enough about Wix nor Windows Installer to make this work. Any ideas? __________________________________ Doug Watts From: Mike Dimmick
[mailto:[EMAIL PROTECTED] Error 2812's text is given in http://msdn.microsoft.com/library/default.asp?url=""> as
'The event [2] is not recognized.' Looking up the SelectionBrowse ControlEvent
(http://msdn.microsoft.com/library/default.asp?url="">)
suggests that you should have a SelectionTree control on the same dialog: it is
the SelectionTree which actually creates the dialog. I'm guessing that since
you don't have one there is no subscriber to the event so when you try to fire
it, the error occurs. I'm trying to get my head around this model of publishing
and subscribing to events. Perhaps you need to have a hidden SelectionTree? I'm not
sure how to - or whether to - remove the actual feature selections from it. I assume that you're installing data files to this
directory, rather than specifying where files will be created by the
application once installed. If the latter I'd suggest making it part of your
application's UI, or command-line configuration interface, rather
than the installer's UI, so that the user can change it after installation
without having to rerun the installer. Your fragment suggests that they can't
change it without reinstalling anyway - I note you hide the Browse button if
the product is already Installed. It may be beneficial to load your generated MSI into Orca
(from the Windows Installer SDK) and use Tools/Validate. This will run the
Internal Consistency Evaluators (ICEs). light.exe in WiX v3 runs the ICEs for
you and will refuse to link if any ICEs produce errors. I don't think there is
one that will pick up this problem but it's worth seeing what other problems
show up. -- Mike Dimmick From:
[EMAIL PROTECTED] on behalf of 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