In the last lesson, I wrote a mini program for automatic updates, and in this lesson, we will talk about how to use this automatic updater
1: We make "Update.exe" and "ICSharpCode.SharpZipLib.dll" into resource files, as shown in the figure below:
2: We set up an update interface, update the interface, everyone can set it casually, string, json string, get request or post request method,
The following is the json string returned by my request for my own update interface, as follows:
{ "LatestVersion": "1.1", "LatestPath": "http://www.xxx.com/test.zip", "Pwd": "123"
} LatestVersion indicates the latest version, LatestPath indicates the latest version download address, and Pwd indicates the decompression password, haha
3: Our main program, request to update the interface, find that the program version and the program update interface are inconsistent, and then start to execute, our automatic update program.
Renderings:
|