Automatic Software Updating
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Automatic Software Updating
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?
Re: Automatic Software Updating
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 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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Automatic Software Updating
Thanks Mark