Installation of Project packaging software using

Source: Internet
Author: User

Zhu Jincan

Source: http://blog.csdn.net/clever101

I found out yesterday that it is quite convenient to use the vs installation project to package the software.

 

1. Create an installation project, such:

2. Set project properties, such:


In the required system dialog box, select the required system components for running the software. For VC ++ compilation software, vcredist_x86 and windowsinstaller3_1 are required. For example:


3. The installation project contains three virtual folders: Application folder, user's "program" menu, and user desktop, such:

The application folder corresponds to the target folder of the software you have installed. The user's "program" menu is the content displayed in the Start menu on the user's machine, the user desktop is the shortcut corresponding to the desktop on the user's machine.

You can drag your folder to be compressed to the application folder node. You can also right-click the folder to add it, for example:

The added results are as follows:


4. Add a user's "program" menu. Specifically, add a folder under the user's "program" menu: My software:

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

Rename "Serial Port test program" and Right-click Properties: select icon

Double-click to select the "mixer. ICO" We added earlier"

After confirming, drag the shortcut to "my software ".

 

Create an uninstall program for the Application: Copy c: \ windows \ system32 \ msiexec.exe to your application directory, add it to the bin node under "application folder", right-click to create a shortcut, rename it as: uninstall, and drag the shortcut to "Serial program ";

Click the project name (setup1) and find: productcode in properties

Copy this productcode and paste it to the arguments attribute of the "Uninstall" shortcut. Add/X space before it.

The online statement is to add c: \ windows \ system32 \ msiexec.exe directly on the bin node (Save the copy c: \ windows \ system32 \ msiexec.exe to my Output Folder ), in this case, there is a problem. A warning will appear during generation: You should exclude "Uninstall piegeoimage" because the source file "C: \ windows \ system32 \ msiexec.exe "is protected by" Windows system files ". The generated uninstall program cannot be used.

 

4. Add a user desktop. Refer to Step 4 to create an EXE shortcut and drag it to the user desktop node.

 

After installing the folder with "Serial Port program" in the Start menu, there are two shortcuts we have created;

There are also shortcuts on the desktop:

References:

 

1. vs2010 program packaging operation (detailed)

Installation of Project packaging software using

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.