Visual C + +. NET programming lecture of Eight

Source: Internet
Author: User

Installation and deployment of programs

Summary

This article first describes installation and pre-deployment preparation, then creates an installation and deployment project with the wizard, modifies the properties of the project, and finally discusses how to use your own title image, add the Serial Number dialog box, and generate Program menu items and desktop icons.

Pre-installation and pre-deployment preparation

Once the application project has been developed, create a setup program for the user to install. Most of the early installers were made using InstallShield, InstallShield one of the biggest features is the use of the embedded scripting language InstallScript to customize its own installation process and installation interface. But now we have a simpler option, which is to use visual Studio. NET to create program installation and deployment projects.

Before the program is released, we need to reconfigure the application project build to turn the original debug version to release. The specific steps are as follows:

(1) Start visual Studio. NET and open the previous single Document application project viewer.

(2) Open the Build menu, click Configuration Manager, and eject the dialog box.

(3) Select release in the active solution configuration and the results are shown in Figure 1.

Figure 1 The Configuration Manager dialog box

(4) Click the "Close" button. Open the Build menu and click Build Solution. When the build is finished, close the solution.

It should be explained that in the project created with the MFC Application Wizard, you can have Win32 Debug and Win32 release two versions. The difference between these two versions is that the debug version of the running program has the appropriate debugging information code, and release version of the running program is not, but release version of the running program after the code optimization, the speed of its program is the maximum speed. Therefore, in general, when a user publishes a developed application to a user, the project should be debugged and compiled into a Win32 release version. The compiled and generated files are placed in the Release subfolder under the Project name folder. For the debug release, the compiled and generated files are placed in the Debug subfolder.

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.