Page 1 of 1

Pushing Updates with LiveCode

Posted: Wed Jan 20, 2016 12:49 am
by smith8867
Hi there,
If I create a Windows program, and sent it to PC A. Can I make changes to the program on my own computer and push the updates through to the program on PC A to alter it? or would PC A need to have a new version of the program?

Thanks

Re: Pushing Updates with LiveCode

Posted: Wed Jan 20, 2016 2:48 am
by Simon
Hi smith8867,
If you use a "Splash Stack" type setup it could reference the app on your computer. Well, as long as all the networking stuff is working.

Simon

Re: Pushing Updates with LiveCode

Posted: Wed Jan 20, 2016 1:04 pm
by smith8867
Simon wrote:Hi smith8867,
If you use a "Splash Stack" type setup it could reference the app on your computer. Well, as long as all the networking stuff is working.

Simon
Thanks Simon.
I was thinking, if I made it so when the user opens the program, would it be possible to create a pop-up window telling the user there is updates, and then they could download a new file from the file server?

Re: Pushing Updates with LiveCode

Posted: Wed Jan 20, 2016 9:56 pm
by Simon
Hi smith8867,
The Splash Stack method http://lessons.livecode.com/m/4071/l/17 ... pplication can be set up to go to the server to run the new stack. And to answer your question more directly, Yes, you could have a pop-up indicating there a new version but that would require another file indicating which version is the latest.
Also check out "go" in the dictionary, it does work with web servers (e.g. go to stack "http://www..../myStack.livecode")

Simon

Re: Pushing Updates with LiveCode

Posted: Wed Jan 20, 2016 11:54 pm
by smith8867
Thanks a lot Simon.

Re: Pushing Updates with LiveCode

Posted: Sat Jan 23, 2016 1:10 am
by smith8867
I am trying to use this method whilst connecting to a database and perform SQL operations. However, when I use this method it doesnt seem to work, but when I save it as a standalone program it does work? Is there any way to fix this?

EDIT: Another thing I noticed is that when I use "answer" statements, the popup isn't displayed. The program just kind of sits there...

Re: Pushing Updates with LiveCode

Posted: Sat Jan 23, 2016 2:05 am
by Simon
Hi smith8867,
I think the answer is the same for both questions.
In the standalone settings of the Launcher stack you have to manually select all the things you want included e.g. Answer dialog, DB support etc. it's in the first tab.

Give it a try.

Simon

Re: Pushing Updates with LiveCode

Posted: Sat Jan 23, 2016 9:45 am
by smith8867
Thanks for replying,
That still won't work though if I only upload the stack to my webserver will it? After all its the Standalone Application Settings, I haven't actually created the package - I only upload the stack.

Re: Pushing Updates with LiveCode

Posted: Sat Jan 23, 2016 10:02 am
by Simon
I don't know. If the exe has initialed all of the libraries..?
I guess you could test and tell me.
In the worst case you'd have to download the new .livecode file, I know that works, just needs an extra file to tell it what the current version is.

Simon

Re: Pushing Updates with LiveCode

Posted: Sun Jan 24, 2016 10:30 pm
by smith8867
Simon wrote:I don't know. If the exe has initialed all of the libraries..?
I guess you could test and tell me.
In the worst case you'd have to download the new .livecode file, I know that works, just needs an extra file to tell it what the current version is.

Simon
I think my setup currently is what your saying (from what I understand), I have a launcher program (.exe), when opened it gets the latest "source.livecode" file from my web server and opens that stack.
However, DataBase queries and answer pop ups don't seem to work.

Re: Pushing Updates with LiveCode

Posted: Sun Jan 24, 2016 10:42 pm
by Simon
Does it work locally?
After including the libraries in the launcher stack the Answer dialog worked for me.

Simon

Re: Pushing Updates with LiveCode

Posted: Wed Jan 27, 2016 9:30 pm
by smith8867
Simon wrote:Does it work locally?
After including the libraries in the launcher stack the Answer dialog worked for me.

Simon
Yea I got it fixed, theres just one thing thats puzzling me; I have included all database externals and scripts on the standalone settings, I can add records to the database, I just can't seem to return a query to a datagrid. The query populates the datagrid when the program is not saved as standalone. Any ideas as to why thats happening?