VS 2013 Packager Tutorial

Source: Internet
Author: User

Briefly

If you just want to run your program on someone else's machine and don't want to install it, there is an easy way to use the "Step 3. Generate Release folder" in this tutorial. But one thing to note is that if you call other DLLs in your program, you need to place the DLL in the release folder. Then you just copy the release folder to the other machine and run it.

Since there are some imperfections in the tutorial about vs 2013 using InstallShield Limited Edition packaging on the web, this blog is written to help. The party borrowed from the "Wule Bar software Station" and "Baidu experience". On their basis I present the whole process in the form of pictures. They are packaged in C # programs, and I'm a tutorial written in MFC as an example. This article also applies to console (console) programs.

Step 1. Create a Project for MFC

The detailed steps are as follows:

Figure 01 Creating an MFC Program

Figure the MFC program property settings

2. Build your MFC Project

You need to build your MFC project in debug mode (F7), make sure your program is not error-free, and be aware of the place as shown:

Figure 03 Building an MFC project

3. Generate the Release folder

Can you see if the initial MFC (console) contains the release folder in your project path? (By the way, when you create a C # program, it will generate the release folder by default, so if a C # project can skip this step) the answer is no, as shown in:

Figure 04 Creating a new MFC program directory

Because the contents of the Release folder we need to use later, so you need to generate a release folder, the detailed steps are as follows:

Figure 05 Setting the release mode properties

Of course you also need to configure the release mode Generation (F7), to note the place as shown:

Figure 06 Generating Release mode

Then you go to the project path to see if the Release folder appears, as shown in:

Figure 07 New Release folder

4. Create InstallShield Limited Edition

Because the VS 2013 default is not installed InstallShield Limited Edition, so you need to download this software.

Method 1:

Website Link: http://go.microsoft.com/fwlink/?LinkID=239620&lang=1033&ver=ult

Use your email registration, will be free to send a registration code, do not need to crack. However, in this site registration may encounter drop-down list box can not pop-up, oh, I decisively fq solve the problem.

Method 2:

My Baidu Cloud Disk: Http://pan.baidu.com/s/1jGgQ82U

Registration code is: 950ebqw-d16-21b43f005n

I do not know that the support is not supported by more than one machine to use, if you can not register to download from the official website, you may try to use My network disk data.

The specific steps to create the InstallShield Limited Edition are as follows:

Figure 08 Creating a InstallShield Limited Edition project One

Figure 09 Creating a InstallShield Limited Edition project Two

5. Set Application information

If you're just a test of your own, then this step is irrelevant, as shown in the following steps:

Figure Application Information Information settings

Set the general information to your own needs, as shown in the following steps:

Figure one general information information settings

6. Set Installation Requirements

This step is to set up your program to run under what operating system, as well as what the system needs to have the necessary software, as shown in the specific steps:

Figure Installation Requirements Information settings

7. Set Application Files

This step is very important, first you need to import the release folder, the specific steps are as follows:

Figure 13 Importing the Release folder

At the same time you need to import files such as extra calls to Dll,ocx in your project, assuming that I call the additional dynamic link library Zlib1.dll in the program, then I need to add this file to the package project. The specific steps are as follows:

Figure 14 Importing additional DLL files

Here is another point to note, as shown in:

Figure the DLL property options

Figure in DLL file property settings

8. Set Application shortcuts

This step is not important, as shown in the following example:

Figure 16 Shortcut settings

9. Set Installation Interview

This step is not important, as shown in:

Figure Installation Interview Information settings

10. Packaging the. NET Framework

Because my program needs to use the. NET Framework 4.5, I need to package this into a program to ensure that the program works on other machines. The specific steps are as follows:

Figure 19 Packaging A. NET Framework file

11.Releases settings

The final settings are as follows:

Figure Releases Information settings

The final step, of course, is to build (F7) This installer.

The packaged program is placed in this place: \setup1\setup1\express\singleimage\diskimages\disk1\setup.exe

Summarize

It took me a lot of time to learn and to write this tutorial, and I hope to help my friends.

2015-03-16 19:49:56

VS 2013 Packager Tutorial

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.