In the main program to write directly form2 this upgrade programs written in? Each open judgment whether have update? Any show? No words don't open?
Or what ideas help me write specific code, is how to cooperate with, ready to have to click the upgrade process detection can see whether have the need to upgrade the program has to click start upgrade
CodePudding user response:
You need a server, the word countCodePudding user response:
The main program and upgrade program must be two separate, otherwise unable to update the main program, because the Lord program is running, can't cover,Main program detected after the upgrade process, automatic exit, and start the upgrade process, in the event of ondestroy
Start the upgrade process after check to see if the main program has been completely out of the no, can check the progress of the main program to check whether there is way, wait until after the main program exit to start the program updates,
CodePudding user response:
If the upgrade to update the program itself, can use the main program to update it,CodePudding user response:
The main program and upgrade program must be two separate, otherwise unable to update the main program, because the Lord program is running, can't cover,Check to have upgraded the main program, automatically exit, and start the upgrade process, in the event of ondestroy
Start the upgrade process after check to see if the main program has been completely out of the no, can check the progress of the main program to check whether there is way, wait until after the main program exit to start the program updates,
CodePudding user response:
Upgrade the main module -- "download to upgrade module --" COPY to cover the original module or ZIP decompression directly to cover the original moduleUpgrade module update - a COPY of the "download the upgrade module - module upgrade" - a COPY of the "open the upgrade module --" close the upgrade module, covering the original upgrade module or ZIP decompression directly COPY covering upgrade module - "after a new upgrade module open reason:" close to upgrade a COPY of the module
CodePudding user response:
Upgrade must be determined before the upgrade modules is not running, if there is a run, kill the processCodePudding user response:
Upgrade module, and the main independent, classics is by comparing the server and the client files in the directory, a file date/time, when the new file, just download, in this way, by the recursive directory, complete the upgrade file,CodePudding user response:
Upgrade module, and the main program is independent and it by comparing the server and the client files in the directory, a file date/time, when the new file, just download, in this way, by the recursive directory, complete file to upgrade,CodePudding user response:
I just because the match for the online upgrade, wrote a BAT, the main program calls, the result is right also, ha haCodePudding user response:
Doesn't really have a special upgrade program can also, exe version download of themselves to an upgrade position, such as the installation directory \ upgrade, then revise the start the exe links to the new location, the next is the new version of the application startup, check your position at startup, if is to upgrade directory copy itself to the normal installation directory, modify the link, and then load the exe, itself out,CodePudding user response:
The so-called upgrade, it is all of the files, can be replaced,CodePudding user response:
1, the main program run-time check whether need to upgrade - & gt; Need - & gt; Start the upgrade process, & gt; Killed in the update of the main program - & gt; The download file to the local temporary directory - & gt; According to the need to copy the file to the specified directory - & gt; End of the upgrade automatically restart the main program,2, can be on the upgrade in the configuration file and directory setup, download this update easier when
Example:
[Chinese. Ini]
Ver=1.22
Path=RunPath \ ini
[DllRes. DLL)
Ver=1.1
Path=RunPath