auto software update.

Blitz3D Forums/Blitz3D Programming/auto software update.

I am about to work on a system, to add to my projects that will enable them to check for updates and then, update!.

I havent done this before and there are a few things in Max/B3D that I havent done that I can see I will need to do.

One thing being to download a file, the patch from the server.

My plan at the moment, is to have a database, in the database i will have..

Table [ Software (Name{PK},c_Version) ]
Table [ Patch (Name{FK},patch_Url,patchID)]

Software table holds the name of the software, or game, such as "Tinvaders" and its current version, in the form on "1.0.0.1" a simple form such as 1,2,3,4 ..

The patch table will hold Name as a fk from software, Patch url which will storm the link to the download patch, and patch id, as there could be a chain of patches for one product.

First of all, am I missing anything in the tables / database or do you think I have covered all of the important things.

Now to the Blitz side of things. I need the app/game to contact the database, send the games current version, get a reply which will be eaither, your ok play on, or oh wait a patch is here for you.

In the event of a patch being available, the game/app(blitz) is going to have to download the patch, close the game, execute the patch then run the game again. this is where i really need the help, I havent downloaded anything with blitz before and im sure this topic has been done a few times.

Anyone want to help out ? tips , tricks , code ?

thanks in advance.