Automatic Software Updating

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Automatic Software Updating

Post by teacherguy » Wed Jan 18, 2012 1:49 am

I'm probably searching for the wrong terms here on the forum, but can anyone point me in the direction of how to have your splashstack check for updates and update its mainstack?

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

Re: Automatic Software Updating

Post by Mark » Wed Jan 18, 2012 1:55 am

Hi,

The basics are simple:
1) check text file on server
2) if text file has changed, download stack with put url
3) restart app to open new stack and delete old stac

The only problem is that you might get troubles with permissions. You might want to make sure that you can write to the application directory, e.g. by writing a text file and checking that it was actually written to disk, before you download the stack. If you're on windows and you can't write to the application directory, tell the user to restart the app with admin rights. If you're on a Mac, tell the user to log in with an admin account.

Kind regards,

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

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Automatic Software Updating

Post by teacherguy » Wed Jan 18, 2012 2:02 am

Thanks Mark

Post Reply