Packaging, deployment of Windows programs (VS Project packaging vs2013)---Shinepans

Source: Internet
Author: User

After the Windows application has been developed, how to package and create the installer to deploy on the client

is a problem that must be faced after every Windows application development is completed.

Learning Goals:


deployment mechanism: Three types of file bin files, obj files, My project files

bin: bin/debug bin/release

These two folders hold the results of the compilation and can run the program exe

obj: Used to save the compilation results of each module, which is the advantage of. NET, where Java programmers Envy, because Microsoft has a powerful vs tool

My Project: Define assembly properties, known as Project Properties folder,AssemblyInfo class file, to save assembly information, such as name, version, etc.

After the compilation is complete, the. dll,. exe,. Config These three types of files are core files

1). Learn what Windows Installer

2). Learn how to create a Windows Setup project

3). Mastering Common settings in Windows Setup projects

4). Familiar with the deployment process for Windows applications

5). Familiar with the process of setting desktop icons when packaging

6). Familiarize yourself with the packaging of the. Net Framework 3.5 Framework.

Windows Installer common settings : Add project Output , add content Files , desktop Shortcuts , build Setup Projects

I. Setting the desktop Icon function description when packaging a program

The default is the VS icon, which can be set to the icon associated with the program function.

Two. Package the. NET Framework 3.5 Framework feature Description

If you want to run a C # program on a computer that does not have a. NET Framework framework, you will get an error message, so you can package the. NET Framework framework into the installer to avoid this problem when you package a program


winddows Installer has the following features that support the common language runtime assembly

1. Installing, repairing, or removing assemblies from the global Assembly cache

2. Install, repair, or remove assemblies on a dedicated location specified for a specific application

3. Rollback failed assembly installation, repair or removal action

4. Install a strong-named assembly in the global Assembly cache

5. Install assemblies in a dedicated location specified for a specific application

6. Patch Assembly

7. Advertise a shortcut to an assembly


How to package and deploy :

1. New Project



If the version is more than VS 2008, you need to download Limited Edition for Visual Studio

Http://learn.flexerasoftware.com/content/IS-EVAL-InstallShield-Limited-Edition-Visual-Studio?lang=1033&ver =ult

Fill in your own information can be downloaded, I downloaded, is the English version, the following will be translated into Chinese


Post-creation View:




Getting started:



Once you've created the Setup project, you're ready to deploy!



Application Information Installation Requirements Install structure file content program Shortcuts Registry SetupInstallation View

The first step:

Application information


Application information to set the program information to be displayed during installation, such as program developer, program development Company, program installation icon and program introduction, etc.





The following are information about common settings:







Language is generally selected in Chinese.



Step Two: Installation requirements







Choose an adaptive operating system to avoid incompatibility.



Step three: Select the program's files:







It is important to note that some programs we use third-party libraries, need to register, the program can run normally

(. dll. OCX), etc.




Fourth step: Set shortcuts and icons for the program:





Fifth Step: Register the program






Sixth step: Set up the installation view of the program:







Finally: Packaging the environment, then publishing (release)





After you have done the above steps, build the solution. After the solution is built, a folder named Setup is generated under the installation assembly, and the installation files are saved in the following directory. Install after generating the installation files will have Setup.exe and. msi two installation files, EXE files are installed boot files, the core file is an MSI file, which contains the program's components. Locate the Setup.exe file and the MSI file inside to install it.


Here try to use Chinese name, error-prone, it is best to use English to set the various


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.