VS2012 does not have its own packaging tools, so download and install a packaging tool first. I use the packaging tools provided by Microsoft: Installshield2015limitededition. : Http://pan.baidu.com/s/1c229wdU, Password: nbnd. Note: After the packaging tool is installed, the first use of the registration code activation before packaging, if you choose to package the trial, the installation of packaged software will be prompted, the approximate content is: The software is used by the unregistered tool for packaging. (PS: Multi-impact user experience Ah, have not been installed to use to receive a warning prompt)
Detailed procedures for packaging: 1. Create a New Installation deployment project
In Solution Explorer for the project you want to package, right-click Add New project in Solution . In the pop-up box, select and set information such as:
After the successful creation of the resource manager, the structure diagram is as follows:
2. Setup Basic program Information
Application information The main Setup program at the installation of some information about the program, including: Program Development Company, program name, program version number and company website, etc.
General information can also set more detailed information:
3. Set Up installation Requirements
The focus of installation requirements is to select the supported operating systems and other dependent software frameworks. Choose according to your needs.
4. Add an app file
Application files an item to set the file that the application lock contains. The program references the DLLs, other files, such as: exe files, CHM files, etc. are added in this step.
First set the main output of the program (the main output is the program body, including the program's Start and entry):
Operation steps: 1. Select the Program name (red box on the left) 2. Click "Add Project Outputs" 3. Tick the main output (red box on left) 4. Click "OK"
Add the DLL and other files referenced by the program via "Add Files".
5. Set the program shortcut icon
Operation Steps:
1. Click "Create an uninstallation shortcut" on the left to create the uninstall project for the program;
2. Click "New ..." to select the "*. Main output" file from the previous step in the pop-up menu, the default name is "Built", the "Rename" button can change the name, the name will be displayed under the icon of the installer (such as the QQ icon on the desktop) You can also set the program shortcut, which is the icon displayed in the desktop or Start menu after the program is installed;
3. Set the display location of the program icon and the Uninstall option icon, such as the 4 box.
6. Set the registry information for your program
You can also skip this step without setting it.
7. Setting up the installation view
Set it according to your own needs.
8. Publisher Program
The above installation steps can be completed after the completion of the solution, but the resulting files will be placed in the DVD-5 folder, you want to use the installation file, you must copy the entire folder or the installation will be wrong, so the content is very cumbersome, and the customer's installation experience is poor.
Workaround: Use Singleimage's installation package to integrate all the files into one Setup.exe, and install them again with just one Setup.exe.
Steps: Right-click the Solution property, and then press set.
9. Package the installation Environment
Operation steps such as:
After the above steps, the program is packaged and finished, the packaged EXE file:
In the packaging process, you may encounter a variety of errors, according to the wrong number of dog search, solve each, then the package after the program can be installed to perform.
C # vs Program Packaging