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 has been developed.

Learning Goals:


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

bin: bin/debug bin/release

Both directories contain compiled results and executable exe

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

My Project: Define assembly properties, called Project Properties directory,AssemblyInfo class file, which holds information about assemblies such as name, version number, etc.

After the compilation is complete,. 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). Master the frequently used 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 often uses settings : Add project Output , add content Files , desktop Shortcuts , build installation Projects

I. Setting the desktop Icon function when packaging a program descriptive narrative

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

Two. Packaging the. NET Framework 3.5 Framework feature Description narrative

Assuming that you want to execute 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 such problems when you package a program


winddows Installer has the following features that support common language execution library assemblies

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. Publishing a shortcut to an assembly


How to package and deploy :

1. New Project



If you have a version number above 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 number, 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 Registration Form establishedInstallation View

The first step:

Application information


Application information to set the program display information about the program during installation, such as the program developer, program development Company, program installation icon and program simple introduction.





The following are information about the settings that are used frequently:







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 is competent enough to carry out the normal

(. dll. OCX), etc.




Fourth step: Set shortcuts and icons for the program:





Fifth Step: Registration procedure






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







Finally: Packaging the environment and then publishing (release)





After you have done the above steps, you'll build the workaround. After the solution is generated, a folder named Setup is generated below the installation assembly, and the installation files are saved in the following folder. 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, easy error, it is best to use English to set the various


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

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.