In The rich installation dialog box is provided in the % ProgramFiles % \ Microsoft Visual Studio 8 \ common7 \ tools \ deployment \ vsddialogs \ 1033 directory,
There is a selection path, but there is no selection of files, but we can use orca tool to edit their own dialog box.
1. In the % ProgramFiles % \ Microsoft Visual Studio 8 \ common7 \ tools \ deployment \ vsddialogs \ 0 directory, copy vsdconfirmdlg. wid
(Vsdconfirmdlg. WID does not have any additional controls for ease of operation), name it "browsefiledlg. WID ". Use the orca tool to open a file.
2. Right-click, select Add Table, and add binary and customaction tables
3. Import DLL (This dll is written in C ++, from http://www.installsite.org/pages/en/msi/ca.htm) download
4. register the DLL. Action is the name of the trigger event, external DLL type must be 1, and source is the name of the binary table, method Name with target as DLL
5. Add the button control and text control to the control table
6. associate button and text in controlevent to directly contact
7. Save the operation and use Orca to generate a guid
8.Copy the file% ProgramFiles % \ Microsoft Visual Studio 8 \ common7 \ tools \ dedeployment \ vsddialogs \ 1033
9.Create an installation project, add the Browse File Dialog Box, and import an installation project. The installer class is responsible for parsing the selected file path, which is the pathtofile parameter.
This. Context. Parameters ["edit1"];
10. Final Results
Download the browsefiledlg. WID File
Reference http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx