< >[winform] VS2010 release, Package Installer (ultra-full detail)

Source: Internet
Author: User
Tags visual studio installer

1. In VS2010 Select "New Project" → "Other project type" → "Visual Studio installer→" Installation Project ":

Named as: Setup1.

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. Right-click Add File in Application Folder: means to add files to be packaged;

The files that are added are generally files that have been compiled into the debug directory of the application;

If you have subfolders under Debug, you need to "add a folder", for example: data

Then add the contents of the corresponding sub-file to this folder;

Add the icon that needs to create the program shortcut: The suffix is: ico

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

Select 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.

VS2010 release. NET2.0 version, when you create 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).

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

Created project name (Setup1) left click (not right), set parameters in properties such as:

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

For example we are set to: Beyondkko;manufacturer: Free Company; ProductName: Serial test.

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")

Click the left button on the application, such as: The first is the System home directory (default C:\Programe), the second is the company name ([manufacturer]), and the third is the application name, which creates a two-tier file path at the time of installation. You need to delete the defaultlocation in: [Manufacturer]. After deletion, only the name of the application.

5. to create an application icon and uninstall a program:

A. " In the. exe file in the application folder, right-click to create a shortcut:

Rename the "Serial Test program" and click on the right Button properties: Select Icon

Double-click to enter the "Mixer.ico" you added before selecting us

When you are sure, drag the shortcut to the user desktop

B. "User's Program menu" to add a folder named: "Serial Program"

Then the same way to create TEXTCOM.exe a shortcut ("Serial test Program"), drag to the "serial program";

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

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

Right-click to create a shortcut, rename: Uninstall, drag this shortcut to the "serial program";

Click on 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 "Serial program" folder, there are two shortcuts we created;

Shortcuts are also available on the desktop.

< >[winform] VS2010 release, Package Installer (ultra-full detail)

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.