I have been doing a small stuff recently, I want to be online upgrade function, now the following concept:
When the program is turned on,
1. Access the registry to get the version number;
2. Access the server and get the current version number;
3, compare two version numbers, decide whether to pop up the upgrade prompt;
4, if you need to upgrade, and the user clicks on "upgrade immediately", open the upgrade program and turn off the current main program;
5. Upgrade procedure Using FTP functions from the server to download the program on the site of the site, then test it to the program installation folder;
6. Start the original program, the upgrade program is turned off.
7. The upgrade process ends.