Autoupdater for your game

Previous topic - Next topic

Moru

I made a simple example of how to make your game auto-update itself, I don't know how it is working on vista or whatever, only tried it on XP.

Simplified it does this:

  • Check what version is on the webserver (downloads a small .txt file)
  • Is it newer than what the game is?
  • Download the new .exe-file
  • Create a batfile that swaps this new exe-file for the old one and renames the old to keep a backup
  • Run the batfile that deletes itself and runs the new exe after it's done

Ofcourse it first asks the user for permission to access the net.

Code can be found on my homepage.

Hemlos

#1
Quote from: Moru on 2009-Jun-28
I made a simple example of how to make your game auto-update itself, I don't know how it is working on vista or whatever, only tried it on XP.

Thats a huge accomplishment for online gaming my friend!

I did make a version checking program last year, the 3d font thing...works good accessing a txt file on the net.

:nw:
Bing ChatGpt is pretty smart :O

amarliani

IOU at least a beer... This saved me a huge amount of time, thanks a lot!