vb.net projects created under VS2010 the process of packaging a release installation package

Source: Internet
Author: User
Tags change settings visual studio installer

vb.net projects created under VS2010 the process of packaging a release installation package

Questions about release and Debug versions:

Visual Studio projects have separate configurations for the release (release) and debug (debug) versions of programs. The debug version is built for debugging purposes, and the release version is generated for the final release of the version.

If you create a program in Visual Studio, Visual Studio will automatically create these configurations and set the appropriate default options and other settings. Under the default settings:

The "Debug" configuration of the program compiles with all symbolic debugging information and is not optimized. (Optimizations complicate debugging because the relationship between the source code and the generated instruction is more complex.) )

The program's publish configuration is fully optimized and does not contain any symbolic debugging information.    Debug information can be generated in a separate PDB file.  

You can use the Standard toolbar and the Property Pages dialog box to switch between the release and debug versions. Change settings for debug (or publish) configuration

Packaging process:

1. Open the VB.net project that you have created (typically a Windows Forms application was created when you first created the project).

2, point " file "-" New Project "-" other project type "-" Installation Deployment "and " Visual Studio Installer"--" Setup Project ", enter the project name (named Setup1 here) and click" OK ".

3. After performing the previous step, the Setup1 project will appear under the solution . Right-click the setup1 item --"Add" and "project output".

4. In Add Project output group, select Primary Output, and then click OK. All dependencies are added automatically.

5. In Solution Explorer, right-click the Setup Project---Add---merge module. Add the relevant modules in.

6. Add the desired application icon and other files in the File System tab, generate the application's desktop shortcut, right-select the property on the shortcut, and select the application shortcut icon at the icon in the property bar. (To change the value of the AlwaysCreate property to true in the user's desktop and in the user's program menu properties). This will allow you to see the icon of the desktop when you finish installing the program.

7. Detailed description of the application icon:

(1) Click "Application Folder " and in the list on the right, "main output from: " Right click and then" Create main output from: The shortcut "

(2) Copy the generated shortcut to "user desktop" and then right-rename it to the name you want to display after the program is installed.

(3) After renaming, in the property bar on the right, click the icon set to the icon you want, note that you need to first add the icon file ico to the "Application Folder ".

vb.net projects created under VS2010 the process of packaging a release installation package

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.