Automatic Updater: Please C&C

Started by VK Dan, Wed 05/09/2007 00:20:18

Previous topic - Next topic

VK Dan

After searching through the forums for something like this, I took it upon myself to create a program which will check for updates for your AGS games. Since I think the readme does a good job of explaining what it does and how to use it, I'll just copy and paste it here. (note to mods: I was going to put this in the Modules & Plugins forum as a tool, but I couldn't start a new topic, and this seemed to be the best fit. Sorry if I should've put it somewhere else.)

This program is released under the public domain. Feel free to use it however you want.

1. How to use
----------------------
1. Open edit game.ini and updater.ini to reflect the details of your game.
2. Upload updater.ini
3. Instead of pointing a shortcut to Yourgame.exe, point it to Updater.exe. The program will check for updates, then run your game.
If an update is found, it will ask the user if they want to download it. If they say yes, the updated program will be downloaded and
installed.

1. How to tell program update is available
------------------------
1. Change the Version key in updater.ini to reflect the latest version number of your game.
2. Change the File key to a path where the updater can download an installer for your updated game.
3. Save updater.ini and upload it to your website.

Once this is done, the program will notify your users there is an update available, and ask them to download it.

3. Limitations
-------------------------
The updater cannont automatically update your program if it is not distributed as an installer. It does not have the ability to unzip your .ZIP files, and it cannnot install with command-line arguments. These may be added in later versions.

4. How it Works
------------------------
The program reads game.ini to find out what version the user currently has installed. It then downloads an ini file from your website and gathers the latest version number. If the latest version number is larger than the current version, it will download the setup file from your website and automatically start the installer. If there is no newer version, it simply starts your game.


Screenshots

Notifying the user there is an update.


Downloading an update

DOWNLOAD PROGRAM

SMF spam blocked by CleanTalk