VS2008 Windows Form Project installation package generation

Source: Internet
Author: User

The release of Windows form projects may be trivial for experienced programmers, but not for many novices, as there is no mention in many books about Visual Studio, such as "C # 2005/8 Advanced Programming" The content is also related to the end. Fortunately, there is no shortage of enthusiastic internet users on the relevant operating experience to share, just in the statement is not exhaustive, I think it is necessary to explain in detail the operation method, I hope to some novice friends to help. Sometimes the fun of learning is not what we have mastered the technology, what skills, good at summing up, learn to share is a good experience, when we encounter problems at a loss, how we hope to have experienced to guide us, I hope we can also become someone else's learning process of a passer-by.

Let me just say, how to put our tested projects, packaging released into a commercialized software, you can double-click installed applications.

First, create a new Installation project

Operation Steps: New project, file, and in the project type on the left of the New Project dialog box, select Install and deploy under other project types, and select Setup project in the Templates window on the right side of the dialog box.

This is illustrated below:

Take a name for the installation project, such as: MySetup, and select the project storage location, such as E:\, and click OK to enter the installation project workspace. As shown in the following:

Add two folders under "Application Folder", an ICO icon called image to store the program, and the other is the one that is used to store all the files compiled under debug of your own development project. Select "Program", right-click to add files, browse through the dialog box to find the files in the bin\debug directory of your own development program, add them all in.

The following interface is added:

Third, to the "User's Program" menu to add content, you can first add a folder, such as the name "Textbook Management System", and then the program's executable file ***.exe you select the right button, select the "Create ***.exe" shortcut, such as:

Rename the created shortcut, such as "Textbook Management system Ver1.0", then cut it to "User's program menu", repeat the above, and add the same shortcut under "User Desktop". After installation, the menu items and icons for the program will be available on the Start menu "programs" and the user's desktop.

Iv. Add the Uninstall the Software command item to the user's program menu, first, add the WINDOWS-brought Uninstaller file "Msiexec.exe" under the Programs folder with the path "C:\WINDOWS\system32", Then rename it and change it to "Uninstall.exe" as shown in:

Create a shortcut to it, rename the shortcut, such as "unload the textbook management system," and cut it into the "Textbook Management System" folder under the user's "Programs" menu, as shown in:

Next, set the arguments property of the Unload shortcut, as shown in:

Command line parameters to fill in the product code to uninstall the program, the code under the Project Mysetup property ProductCode corresponding value, copy it, such as:

Then copy to the arguments parameter value of the unload shortcut and precede with "/X" as shown in:

Add an icon to the application add your favorite icon small files to the image folder, and then select the shortcut under the user's Programs menu to add an icon to its shortcut in the icon in the Properties window.

Vi. add related prerequisites to ensure that the relevant files are not missing during installation Select the Mysetup project, right-click Properties, and have the prerequisites button in the Properties Page dialog box that appears, as shown in:

In the dialog box that appears, select the relevant prerequisites, as shown in:

VII. Build Project

After the build succeeds, the generated two installation files are found in the project's Bin\Debug directory, as shown in:

Double-click Setup to install, and when installed, the menu command will be found in the Start menu, as shown in:

Similarly, there will be an executable shortcut icon on the user's desktop.

To this end, a complete VS2008 program release packaging process is finished.

VS2008 Windows Form Project installation package generation

Related Article

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.