Tuesday, 19 February 2013

Create an automatic updater for your program using AutoHotKey.

Script originally coded by ZeusBeta, modified by Arcane.

First of all, you will need to install the programming language known as AHK/AutoHotKey as the updater is coded in it. It is a free and small language, you can download it from here: http://autohotkey.com/

After downloading it, open up the the Updater.ahk (You can find the link to this pack at the end of this post.) using Notepad/Wordpad/SCiTE.

The first part is very easy, all you need to do is replace all the FILENAME, COMPANY NAME text with your application details.

Now the difficult part.
Create a new Notepad document and add the latest version number in it.
Example: ""
Upload it to somewhere so that you get a direct link.
Ex: http://www.HoodedJustice.me/version.txt
NOTE: You have to make sure that you can edit the version.txt in the future without having to change the links.

Once that is done, put some squat together in a .zip file (NOT RAR) and upload it so that the user gets a direct download link.
Same as before, make sure that you have access to this and can replace the file whenever necessary without changing the links.

Copy the links to both of the files.

Now open up the Updater.ahk again and scroll down.
(The following screenshot ought to explain the rest.)

 Compile it using AHK2ExE from AutoHotKey.com and you're done with your updater.
Now everytime the Updater.exe is run, it goes online and checks the version located online with the version of the currently downloaded program.

If (CurrentVersion < LatestVersion), the new version is downloaded.

Download Link (Updater.ahk): http://www.mediafire.com/download.php?n5cwkwbu9h7kkam

PS: Don't bother visiting "WizNest.info", it's my old forum, it's no longer online.


All the posts found in this blog are meant either for educational purposes or are the personal opinions of myself (Arcanecfg). I do not condone any illegal activities whatsoever. I cannot be held responsible for any actions the readers of this blog may perform with the knowledge attained from here (Wasted Wolf). These Terms and Conditions of Use apply to you when you view, access or otherwise use the blog located at www.WastedWolf.com.

Theme designed by mono-lab / Edited by Arcanecfg.

DMCA.com Protection Status
/ Wasted Wolf /