Re: update framework



hendedav@xxxxxxxxx coughed up some electrons that declared:

On Jul 20, 9:35 am, Tim Southerwood <t...@xxxxxxxxxx> wrote:
hende...@xxxxxxxxx wrote:
Gang,

I am working on a project and would like to incorporate an (auto)
update feature.

Could you elaborate more please on what you are updating.

Cheers

Tim


Thanks for the reply Tim. I am building my own application and am
trying to incorporate an update feature for it. Thats why I was
wondering if anyone has built a generic "update framework". If nobody
has, then I will need to build my own, in which case I was going to
see if anyone here knew of a perl module that would be able to send
and receive http requests (combined with wget could make an update
framework). Hope this clears it up.

Dave

Not come across one - but that does not mean there isn't.

So I guess you want to query a website for:

a) Some data indicating current version of your app and urls of the various
bits needed to transition between two versions (deltas) - or url of the new
complete version.

b) Fetch various binary blobs (zip or tar files maybe), then install them
locally to update either data or the app itself.

It wouldn't be daft to drive wget via system or IPC::Run(3). Certainly
simple.

Also the data in a) needn't be HTML - it could be any parseable text at your
convenience. If XML, then the XML::Simple module is really easy to use.

If you want to talk to web servers directly, this is a reasonable and mature
module:

http://search.cpan.org/~gaas/libwww-perl-5.806/lib/LWP.pm

and there's this one too:

http://search.cpan.org/~gaas/libwww-perl-5.806/lib/Net/HTTP.pm

Sorry - I can't give any help with how to do the update as I don't know what
your app looks like. File::Copy may be of use.

But I would say - if you are updating core app binaries or critical data,
try to have a way where you can install an updated version in parallel to
the running version. Then if anything goes wrong, the user has a fall back
to a version that still works. This is particularly true of updates that
have so many parameters outside of you control (your webserver might crash,
the internet falls over betwixt you and your user, their machine crashes
(or gets turned off!) mid update.

Cheers

Tim
.



Relevant Pages

  • Re: update framework
    ... trying to incorporate an update feature for it. ... wondering if anyone has built a generic "update framework". ... Fetch various binary blobs, then install them ... locally to update either data or the app itself. ...
    (comp.lang.perl.modules)
  • Re: Wakefield (second attempt)
    ... You see an app you like click on install and its done from wherever ... But I guess you need email support for updating it and technical know ...
    (comp.sys.acorn.misc)
  • Re: Technical advice needed regarding polling the database
    ... Is it safe to assume that the user is using one app to view the db while it ... decide if it should update the cache right away or at a later date. ... is frequently updating ... I am confused .What feature I should used. ...
    (microsoft.public.dotnet.general)
  • 6280 on Three V6.10 - application list empty and apps conflicting with....nothing!
    ... Since updating to v6.10 on Three, I've reset multiple times, formatted ... the memory card, done everything I can think of, but I keep getting ... conflicting app, I click on "show" but it just shows a blank line. ...
    (uk.telecom.mobile)
  • Re: Need some advice on ADO .NET
    ... updating will make a difference. ... any more of the DB structure in your app than you have to. ... developing a web app then you'll most likely be performing changes one ... if you're populating DataTables from DataAdapters then ...
    (microsoft.public.dotnet.framework.adonet)