Online Auto-Updater
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Online Auto-Updater
Hello
I read it is possible to build an application that updates itself over the internet.
I guess by downloading just the stack and storing it as a reference file.
Is there any sample code I can start from?
If not, how would you suggest me to start this project?
Regards,
Andres
I read it is possible to build an application that updates itself over the internet.
I guess by downloading just the stack and storing it as a reference file.
Is there any sample code I can start from?
If not, how would you suggest me to start this project?
Regards,
Andres
Try this:
Alternatively you can start the stack directly from the Web:
Another nice thing is, that you can start a stack from a custom property:
Then later, you can start the stack from the custom property, even when shutting the program down inbetween:
Code: Select all
on mouseUp
put url "http://some.url.to.a.stack.on.the.web" into x
put x into url "binfile:stack.rev"
go stack "stack.rev"
end mouseUp
Code: Select all
on mouseUp
go stack url "http://some.url.to.a.stack.on.the.web"
end mouseUp
Code: Select all
on mouseUp
set the downloadedStack of this stack to url "http://some.url.to.a.stack.on.the.web"
save this stack
Code: Select all
go stack the downloadedStack of this stack
end mouseUp
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Hi Andres,
you define a path that is save to write to, like the application support folder.
see specialfolderpath in the docs. Then you use the method bvg mentioned first. (put into url "binfile:pathICanWriteTo"). On launch of your ap you check for existance of the stack on the HD:
if there is a file "pathIHaveStoredTheStack/myStack.rev" then
go stack "pathIHaveStoredTheStack/myStack.rev"
else
doDownloadMyStack
end if
All the best,
Malte
you define a path that is save to write to, like the application support folder.
see specialfolderpath in the docs. Then you use the method bvg mentioned first. (put into url "binfile:pathICanWriteTo"). On launch of your ap you check for existance of the stack on the HD:
if there is a file "pathIHaveStoredTheStack/myStack.rev" then
go stack "pathIHaveStoredTheStack/myStack.rev"
else
doDownloadMyStack
end if
All the best,
Malte
Re: Online Auto-Updater
The scripts work for me and get my stacks from the internet fine but the stack that is downloaded has database/mySQL integration which does not work even though when saving the standalone I ticked all the right boxes in the standalone settings.
Why is this?
Why is this?
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Re: Online Auto-Updater
It depends on where the MySQL server is located, and if the client IP-address is allowed direct access to the database.
Most administrators prevent remote access to database servers, to avoid security issues.
Jan Schenkel.
Most administrators prevent remote access to database servers, to avoid security issues.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Re: Online Auto-Updater
Hi Jan
This isnt the issue - its just when I have a splash screen which downloads my stack from the internet, the mySQL parts to the stack do not work. I was thinking I had to download the Database externals along with the stack. Or should it work when the externals are in the splash screen folder?
This isnt the issue - its just when I have a splash screen which downloads my stack from the internet, the mySQL parts to the stack do not work. I was thinking I had to download the Database externals along with the stack. Or should it work when the externals are in the splash screen folder?
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Re: Online Auto-Updater
For your 'splash' applicaion, you should switch to manually setting the inclusions in the standalone application settings, and picking the features that your other stacks will use (Dialogs, XML external, Database external with appropriate drivers, etc.) as the standalone builder will not be able to predict all the features that your non-splash stacks will need.
Jan Schenkel.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Re: Online Auto-Updater
Jan - thanks for your quick response.
I have got it wrong - my stack is connecting to my database fine but the problem is that the datagrids do not respond when clicking on the rows/columns. The scroll bar moves up and down but the content inside the datagrid does not move.
This is only when I donwload the stack using a splash screen.
If I build the stack that I download as a standalone I do not have any problems with the datagrids.
Any ideas?
I have got it wrong - my stack is connecting to my database fine but the problem is that the datagrids do not respond when clicking on the rows/columns. The scroll bar moves up and down but the content inside the datagrid does not move.
This is only when I donwload the stack using a splash screen.
If I build the stack that I download as a standalone I do not have any problems with the datagrids.
Any ideas?
Re: Online Auto-Updater
Daniel,
please check your thread with the same name under "Talking Revolution".
Seems to be same problem here!
Best
Klaus
please check your thread with the same name under "Talking Revolution".
Seems to be same problem here!
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Re: Online Auto-Updater
See this lesson entitled 'What Do I Need to Do To Deploy a Standalone With A Data Grid?'
Jan Schenkel.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com