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