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