BlitzUpdater

Community Forums/Showcase/BlitzUpdater

Andres(Posted 2006) [#1]


I've made a simple updater/installer. For user only executable needed to be functional.

Source and executable!
Execute the bat file to see it in action.

If you want to use the updater as installer then you need to change the first line in updater.bb file:
ConfigFile$ = CommandLine$(); Example ConfigFile$ = "http://www.oat.ee/andres/updater/update.cfg"
else you can use command line to specify the config file.

Config file looks like this and has to be modified for own usage:
UpdateName=Updater 1.0
Logo=http://www.oat.ee/andres/updater/logo.tga
FileList=http://www.oat.ee/andres/updater/files.txt
UpdateSize=534846
AutoStart=0
ExecuteOnFinish=
CloseOnFinish=1
NotifyOnFinish=Update finished successfully!
EnablePathChoose=1
DefaultPath=
Logo is shown in the updater (TGA format only).

and finally the file list:
Folder=images\
File=http://www.oat.ee/andres/updater/logo.tga
File=http://www.oat.ee/andres/bogl.jpg
Folder=executables\
File=http://www.oat.ee/andres/lk.exe
All files will be saved in first folder specified above it.
Example: DefaultPath$ + "executables\lk.exe"


Grisu(Posted 2006) [#2]
This sounds really great.

My problem is that I have included all media inside my main exe. The exe is getting quite big over the time (4 MB).

Is it possible to write an exe file updater, so I don't need to "replace" the whole exe file, instead only make/apply the changes needed inside the exe file itself?


Andres(Posted 2006) [#3]
Well 4MB isn't very much and there is no changing possibility.


jfk EO-11110(Posted 2006) [#4]
Very useful, thanks a lot!

Grisu - 4 MB is cute, but I agree, it would be useful to patch an exe, although this will always be a risky job. I assume you're using Molebox do you? I guess it allows to pack the data to several external files instead of the single exe. They are still compressed and encrypted, but you may replace them without to risk too much.


Andres(Posted 2006) [#5]
One more thing: You'll never know what version user currently has and you'll have to specify seekfile positions for every different version or what?

[Edit]
Made some changes in the updater!


xlsior(Posted 2006) [#6]

My problem is that I have included all media inside my main exe. The exe is getting quite big over the time (4 MB).

Is it possible to write an exe file updater, so I don't need to "replace" the whole exe file, instead only make/apply the changes needed inside the exe file itself?



Another option (if you mainly expect to update media, levels, etc.) is to add some logic in your .EXE to check an external config file that may point to alternative external media/levels/whatever that can override the existing incbin'ed copies.

e.g. load incbin::whatever.jpg unless external file whatever2.jpg exists, then use it.


System4 Studios(Posted 2009) [#7]
Anyone still got the source to this?