C #-based open-source automatic update program

Source: Internet
Author: User

Ant is an automatic update based on C #.ProgramThe main purpose is to easily and automatically update. Net desktop applications to solve version update troubles. Ant consists of three parts: Server, management, and program.

The server is mainly used for file update and download.

The management end is used to update the latest version of the program to the server.

The program is mainly used to obtain the file information of the server and update the latest file to the local device.

Ant. component must be referenced before use by the program end, and detection should be used at the beginning of the programCode

 
Private void form1_load (Object sender, eventargs e) {string host = "www.henryfan.net"; ant. component. updater = New Ant. component. updater (); If (Updater. detect (host, 9560) {Updater. updating (host, 9560, "autoupdate.exe", true); close ();}}

In the program, use Updater to check whether there are any file updates. If you use updating.exe and disable the previous program, the updated update will execute the designated program called autoupdate.exe "; replace it with the relevant EXE file as needed. To make the update process normal, ant.update.exe must be in the program directory.

Project address: http://www.ikende.com/AntUpdater.aspx

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.