Windows Installer create select file custom dialog box

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.