Auto Update

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

gpearson
Posts: 84
Joined: Wed Feb 03, 2010 12:55 pm

Re: Auto Update

Post by gpearson » Thu Sep 05, 2013 4:17 pm

What I do in my application is my "Splash" Screen is the one that gets compiled as a standalone. This stack has code to check for internet connection, create sqlite database, check for an xml file on a website. It checks the difference between a custom property and the xml tag to see if a newer version is online. If it is, it downloads a zip file, extracts the file and runs another stack which is the main application. For my applications I have been naming them the application name.dat

In my zip file is just the updated stack of the main application and any other files that the stack would reference.

dabrowBUSXWKD wrote:Hi
I need advice on creating auto update system for my app.
I have stack "Main" with custom properties and Splash stack that will be compiled to standalone, and will check for if new vers. of app. is available , and download new "Main" . This can I do.
What next ? any tutorial with examples.
Something else that is the problem when I try to download "new Main" stack from my web site is not useful if I use main.livecode , I just can't download it. When I change file to main.rev it is better, I can download but file is corrupted. Do I have to build standalone with new "main" ? then upload it to server ?

How do you guys do it ?
Practical code/ stack example ?

Regards
---
Graham Pearson
Goshen, IN USA

We Are Closed Today is your single internet resource for Indiana Area School Closings, Visit http://www.weareclosedtoday.com

Post Reply