Hi, I need to prompt the user for the location of a file before installing my software.
I'm disappointed that I couldn't find an example of this ANYWHERE. There are lots of discussions about using custom browse dialog, but no examples. If I figure this out, I will publish an example. I give the user the file to put on their system (anywhere), and at the start of setup, I need to parse that file using a CA in a DLL. It is a license file, and I'll use some info in there to determine some features to install. So after the LicenseAccept dialog, I have a new dialog ("PreInstallDlg.wxs") which has a "browse" button on it to fire up my copy of the browseDlg.wxs code ("MTBrowselDlg.wxs"). The browse control looks like this: <Control Id="LicenseFile" Type="PushButton" X="20" Y="120" Width="56" Height="17" Text="Browse" /> In my copy of the WixUI_InstallDir code, I have the following code: <Publish Dialog="MTPreInstallDlg" Control="LicenseFile" Property="_BrowseProperty" Value="[LICENSE_FILE]" Order="1">1</Publish> <Publish Dialog="MTPreInstallDlg" Control="LicenseFile" Event="SpawnDialog" Value="MTBrowseDlg" Order="2">1</Publish> My MTBrowseDlg looks like this: <Fragment> <UI> <Property Id="_BrowseProperty" Value="LICENSE_FILE" /> <Dialog Id="MTBrowseDlg" Width="370" Height="270" Title="!(loc.BrowseDlg_Title)"> <Control Id="PathEdit" Type="PathEdit" X="25" Y="202" Width="320" Height="18" Property="_BrowseProperty" Indirect="yes" /> *** blah blah - just like the original dialog *** </Dialog> </UI> </Fragment> This compiles ok, but when I run it, I get this error: Action 14:16:01: MTPreInstallDlg. Dialog created MSI (c) (A4:2C) [14:16:04:898]: PROPERTY CHANGE: Deleting _BrowseProperty property. Its current value is 'LICENSE_FILE'. DEBUG: Error 2819: Control PathEdit on dialog MTBrowseDlg needs a property linked to it The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2819. The arguments are: MTBrowseDlg, PathEdit, MSI (c) (A4:2C) [14:16:06:704]: Product: MTX -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2819. The arguments are: MTBrowseDlg, PathEdit, How can I fix this error? Thanks -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Browse-Dialog-tp5413342p5413342.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