Page 1 of 1

How can I do update of my app?

Posted: Thu Mar 17, 2016 10:35 am
by razvan
Hello everybody!
I want to make an update button in my app for my users.How can I do it?
I tryed to put my app on FTP ...and I used this lesson "http://lessons.livecode.com/m/4071/l/72 ... a-download" for download my .exe from FTP but when I try to execute it almost every time appear this error "The setup files are corrupted.Please obtain a new copy of the program"
If use filezilla for download the app ,it's working correct.

If someone can help me or tell me another way for update will be helpfully.
Thanks.
Razvan

Re: How can I do update of my app?

Posted: Sat Apr 09, 2016 9:02 am
by Mark
Hi Razvan,

A good way is to use installer maker to build an installer containing the files that needs to be updated. Use http to download the file to the user's computer, not ftp. Use the launch command to start the installer and then quit your app. Have the installer open the app when it finishes.

Kind regards,

Mark

Re: How can I do update of my app?

Posted: Fri May 20, 2016 9:34 am
by razvan
Thanks Mark that's good ,
I want to share my app on a web page or something like this.In present I have a button for check update in my app and use a link of dropbox but is not so professional this way.

Code: Select all

   if the environment is "mobile" then launch url "https://www.dropbox.com/sh/xxxxxxxx/xxxxxxxxxxxxxx?dl=0" 
   if the platform is "Win32"  then launch url "https://www.dropbox.com/shxxxxxxxxxxxxxxx/xxxxxxxx?dl=0" 
   if the platform is "MacOS" then launch url  "https://www.dropbox.com/shxxxxxxxx/xxxxxxxxxx?dl=0"
Regards,
Razvan

Re: How can I do update of my app?

Posted: Fri Jul 22, 2016 1:21 pm
by MaxV
Use this code to download:

Code: Select all

libURLDownloadToFile "ftp://...","Path_to_file_on_harddisk...","downloadComplete"