Application updater system

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Application updater system

Post by user#606 » Sat Aug 16, 2008 2:47 pm

Has anyone developed a simple application updater system.
Example:-The whole application folder with data and exe are compressed in a normal ZIP file and held on Windows Live SkyDrive for anyone to download.
The application is required to check for updates at this site by comparing the ZIPfile name(which includes an incremented version number) and if newer than the current application, download, decompress and over write the whole folder and contents (except a registered user id file).
The objective is to remove a free version of the system and replace it with a paid for system at some future date.
The typical ZIPfile size is about 10mb
Any ideas?
There are some files at
http://cid-a5bbe4d308b2f553.skydrive.li ... sion-1.zip
just to see if they download ok and create a folder etc.
It is the next stage that is problematic, how to do the update automatically.

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Post by keyless » Sat Aug 16, 2008 5:46 pm

Check out Trevor's GXL Framework. Updater framework is just one small part of what this has.

http://www.bluemangolearning.com/developer/revolution/

user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Post by user#606 » Sat Aug 16, 2008 6:39 pm

It looks to daunting for me, I need a simple bit of code or self contained module to deal with the case.
I had hoped someone had made this "wheel" already.
Thanks anyway.

Any one else got the answer?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Aug 16, 2008 8:52 pm

Hi User,

Download the application and decompress the files. Save as small as possible a standalone application, or an AppleScript/VBS file in a temporary location. Have the temporary standalone or script copy and delete the necessary files. When ready, start up the new application. The temporary file can stay in the temporary directory. If the operating system behaves well, it will remove the temorary files next time when you start up.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply