PDA

View Full Version : How to do automatic updates?



NewsArchive
08-10-2011, 01:48 AM
Hi All,

I'm working on how to implement automatic updates, so my Clarion app can
check if an update exists and, if so, automatically download and install it.

Does anyone code this feature themselves? If so, any suggestions on how to
do it?

Or, is 3rd party the way to go? Any suggestions which to use?

TIA,
Fabian Fuller
6.3.9058 ABC

NewsArchive
08-10-2011, 01:48 AM
SetupBuilder - The *ONLY* way in my opinion

*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One

NewsArchive
08-10-2011, 01:48 AM
"The *ONLY* way in my opinion "

Does setupbuilder do incremental updates?

Say user is at version 1.01 and the latest version is 1.09
Will it upgrade to 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 incrementally?
This is a true test of an updater IMO.

Dan

NewsArchive
08-10-2011, 01:48 AM
From the SB docs:

"End users frequently do not need all the files contained in an installer.
Lindersoft's Web Installation technology simplifies the user experience by
first downloading a small "smart" installer which can retrieve just the
pieces needed for the user's specific requirements. The Web Installation
will also detect which files you need to have updated and only download
those that are out-of-date. Because a user downloads only the pieces they
need, you shorten their download time, and reduce your web server load at
the same time. "

Jane Fleming

NewsArchive
08-10-2011, 01:49 AM
Hi Jane

Example:
version 1.01 Straight update.
Version 1.02 requres a small program to run to update some records and FM3
must be run to update files that changed.
version 1.03 Straight update
version 1.04 requires a small program to run to change some info in some
records
and FM3 must be run to update files that changed.

I suppose I could write some sort of script to check for what version is
being updated, but then it seems to be getting complicated. Right now I
simple auto download the next version incrementally.

--

Dan Scott
C55 C6.3 C7.1 LEGACY
www.garagepartner.com

King of questions for Clarion Third Party

Plan A is always more effective when the device you are working on
understands that Plan B involves a larger hammer

NewsArchive
08-10-2011, 01:49 AM
I use Setup Builder. When I release an update, I simply upload the
appropriate files to a server. The user fires up my app. The app "senses"
there's a new version and I give the user an option to run the update or
not. Has worked VERY well!!

SB can sense incremental updates. Ie., 1.0 -> 1.01 -> 1.02 and so on.

Don

NewsArchive
08-10-2011, 01:49 AM
Is this a multiuser app?

If so how are you ensuring all users update at
the same time?

Mike

NewsArchive
08-10-2011, 01:49 AM
Yep, it's multiuser. Using Capesoft's Replicate. Fortunately, Replicate
does not care if say, one user's table structures do not match another
user's structures. Everything keeps running right along. If one user has a
structure that doesn't match, he simply will not get the data replicated
like the others. These users were made to understand that when they are
notified of an update, it is in their best interest to update their app. I
could use the update feature in FM3 but I haven't decided to go down that
road yet...

Don

NewsArchive
08-10-2011, 01:50 AM
Oh...Hey Mike,

I was thinking of trying to integrate LogFlash with Replicate. However, the
LogFlash tables will have to be modified. Can they be modified and not
break anything you have going on in your template? Specifically, they (the
tables) need two fields added. A GUID field and a site (S4) field. And a
GUIDky.

Thanks,

Don