gbUpdate provides a way for applications to download a new version of
the application EXE file. The approach requires the addition of a function to the
application itself. Additionally, separate EXE file
A function is added to theThe application itself
This Help page is in work!
gbUpdate uses a single main screen, consisting of a toolbar ...
Additionally, context menus are provided for each text source.
gbUpdate provides a variety of features.
- Online Update of EXE
- Built into application
- No secondary DLL required
- Download status displayedd
- Online Help
To use gbUpdate, two files must be placed on a server:
- myapp.ver - contains a single line with the version
number of the latest application
- myapp.new - the latest EXE, renamed as myapp.NEW
Then, to add the online update to your application, you must add
code in 3 places to the main application.
- Add the CheckForUpdate function
- Add the InstallProc callback function
- Add 6 lines of code after Dialog Show Modal in PBMain()
When you run "CheckForUpdate", the version number is pulled off the
server and compared to the current EXE version number. If a new
version is available, it is downloaded. Then, if the user agrees to
update the current file, the current program is closed and it's EXE
renamed to EXE.old. The downloaded .NEW file is renamed as .EXE and
the new version restarted.
The image above walks through the update cycle.
Comments and suggestions are welcome!