WinForm General Automatic Updater Autoupdater Project Combat

Source: Internet
Author: User
Tags ftp protocol

I. Introduction of the project background

Recent units have developed a project that requires the use of automatic upgrade functionality. Because auto-upgrade is a more common function, it may be used in many programs, so I would like to write an automatic upgrade of the component, in the application, only need to reference this automatic upgrade component, and add a small amount of code, you can implement the automatic upgrade function. Because our program may contain more than one type of file, such as EXE, DLL, config, XML, bat, and so on in the custom format of the suffix file, so to support multiple file types of updates.

This issue also brings you to share is that a stupid in the actual work encountered real project scenes, please follow a stupid perspective to how to develop and implement WinForm Universal Automatic Updater Autoupdater, if you are interested in this issue of the tutorial content, then please allow a stupid with everyone to learn!

Needless to say, directly on dry goods, we do not produce dry goods, we are just dry goods porter.


Have you learned to count from 1 to 10?

III. schematic diagram of project realization

3.1, WinForm Universal Automatic Updater autoupdater schematic

Implementation of the idea: in the remote IIS automatic upgrade server put an XML file, which recorded the software version number, release date, to update the DLL and other information, if you find the version number of the local software and the server is not equal, replace the local file.


Schematic diagram

3.2, then we need to solve the core technical issues involved today can be summed up in the following sentence:

The FTP protocol and HTTP two protocols are supported, and HTTP is the recommended method.

Iv. knowledge points relating to coverage

How to pass and receive parameters between two independent WinForm programs;

How to download remote site files via HTTP protocol;

How IIS constructs the automatic upgrade virtual site;

How to configure IIS to support file downloads in a custom file suffix format, such as. apk,. config,. bat,. pdb, and so on;

Autoupdatexmlbuilder the use of the automatic Upgrade Packaging tool;

Wait a minute......

Five, the source code online demonstration and interpretation


Online video viewing


If you don't believe it, sweep it.


WinForm General Automatic Updater Autoupdater Project Combat

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.