Because, some of my software customers are using it and want to make it an automatic update, so write a program update module by yourself!
Pros: After the software update, you don't have to send every customer every time! The program automatically checks for updates!
Cons: None!
Our updater is independent software, so it does not affect the main process, and the way the updater is started is the main program to run the updater with parameters!
In fact, the updater is not started like this, in order to be in a good demonstration, so it is run through the cmd command.
The program downloads the update package, and it will automatically delete the update package, hehe,
Let's talk about what the startup parameters mean:
We see that Update.exe is followed by 3 parameters,
The first parameter: the download address of the zip update package The second parameter: the zip update package decompression password (add the decompression password to prevent the antivirus software from falsely reporting and killing by mistake) The third parameter: Before unzipping the update package, the process that needs to be killed (no need to bring .exe)
Automatic update module, how to attach it to your own main program, will be discussed in the next class! Tutorial:
Automatic update program module, you can download it yourself, try to play by yourself, ha:
Tourists, if you want to see the hidden content of this post, please Reply
Source code download:
Tourists, if you want to see the hidden content of this post, please Reply
|