07-18-2015, 03:17 PM
In order to support automatic upgrade, we finally chose SFX archive as our package format.
With this format, the updater("centbrowserupdater.exe") can simply rename "centbrowser.exe" to "old_centbrowser.exe", and then launch a process by command line such as "self_extractor.exe -s -dC:/CentBrowserPortable" to complete the upgrade.
It is similar to the upgrade process of the installed version, except the installed version uses "setup.exe".
Note that you should not move the "centbrowser.exe" into the module directory(1.2.13.10) if you want to keep auto upgrade working.
With this format, the updater("centbrowserupdater.exe") can simply rename "centbrowser.exe" to "old_centbrowser.exe", and then launch a process by command line such as "self_extractor.exe -s -dC:/CentBrowserPortable" to complete the upgrade.
It is similar to the upgrade process of the installed version, except the installed version uses "setup.exe".
Note that you should not move the "centbrowser.exe" into the module directory(1.2.13.10) if you want to keep auto upgrade working.