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.