VS2010 Installation Project Program packaging operation detailed

Source: Internet
Author: User
Tags visual studio installer

1. Open VS2010, select New Project---Other Project types---Visual Studio Installer----Setup Project

There will be three folders in VS2010,

1. "Application Folder" means the files to be added by the application to be installed;

2. "User's ' Program ' menu" means: The application installs, the user's "Start menu" in the content, generally in this folder, you need to create a file to store: application. exe and uninstaller. exe;

3. "User desktop" means: This application is finished installing the. exe shortcut created on the user's desktop.

2. In the application folder, right-click Add Files: Add files to be packaged (the files that are added are generally files that have been compiled in the debug directory of the application)


If you have a sub-file under Debug, you need to "add a folder", such as data, and then add the contents of the corresponding sub-file to this folder;

3. Right-click on the Created project name (SETUP1)--Properties

Choose Prerequisites

Then select. NET version, and Windows Installer3.1 (optional)

Select: "Download prerequisites from the same location as my application"

The installation package will then package the. NET Framework, which will not be downloaded from the Web when it is installed, but the installation package is larger.

------------------------------------------I'm a gorgeous split-line-------------------------------------
"Resolves a project created by VS2010 Publishing. NET 2.0, installing. NET FrameWork3.5 Issues"

VS2010 release. NET2.0 version, when creating the installer, you need to set the launch condition: on the project name (Setup1), right-click to select "View"----"Launch condition":

Then VS2010 will create the following file:

In launch conditions, click the. NET Framework to select the. NET Framework 2.0 on version above;

When you install a project that is created on the. NET Framework 2.0, it is not installed. NET3.5 or other versions,

Also does not restart (fix the project created by. NET 2.0, install the. NET FrameWork3.5 problem).

---------------------------------'s Over! Continue packaging for. NET Framework 4.0 Oh-------------------------


4. Set the directory (path) of the installation files:

Create the project name (Setup1) by clicking the left key and setting the parameters in the properties as follows:

Where author is the author; manufacturer is the company name; ProductName is the name of the application;

Set the InstallAllUsers to true.

(This will show the name of the company in the "Control Panel" program;

Will default to "anyone" at the time of installation, otherwise the default is "Just Me")


Left click on "Application Folder", such as: The first System home directory (the default C:\Programe), the second is the company name ([manufacturer]), the third is the application name, so that the installation will create a two-tier file path. You need to delete the defaultlocation in: [Manufacturer]. After deletion, only the name of the application.

5. Creating applications and uninstalling programs

In the EXE file in the application folder, right-click Create shortcut, Name "My Gadget", OK, drag this shortcut to "User desktop";

In the user's Program menu, add a folder named: "Program Gadget",

Then the same way to create CheckingApplication.exe a shortcut ("My Gadget"), drag to "program gadget";

and then give. NET application to create an uninstall program:

In the Application folder, add: C:windows\system32\msiexec.exe

Right-click on Msiexec.exe to create a shortcut, rename: Uninstall, drag this shortcut to the "program Gadget";

Click the project name (SETUP1), found in the properties: ProductCode

Copy this ProductCode, paste the arguments property to the "unload" shortcut, preceded by the/X space

6, complete the above steps, you can build a solution.

7, after the solution is built, in the Debug folder is the installation package we need.

8, installed in the Start menu has "program gadgets" folder, which we created "My Gadget" and "Uninstall", of course, the desktop also has a shortcut we created.

Http://blog.sina.com.cn/s/blog_74f702e60101at62.html

VS2010 Installation Project Program packaging operation detailed

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.