Andrew wrote:

Hi All,

The application we are doing now has been designed to have VERSION UPDATE
function. It means that the application can download the latest version from
server via network and then the running application replace itself with the
new one.

At current stage, the problems of doing that include:

1. How to download an application (*.prc) file correctlly?

ExgDbRead()
(I'd still recommend writing the app to a file stream first, then convert the file stream using ExgDbRead() instead of trying to use ExgDbRead directly on the socket - there's a few tricky things if there's not enough data at a given time to fill the record)


2. How does a running application replace itself with others?

A) write a separate installer prc that downloads and converts the new version, then ExgDbRead() gives a hook where you can delete a pre-existing app.


B) use a third party packaging tool (eg. Combiner) to package your new version, then launch it programmatically from your app (which then replaces your original app as it extracts).

C) anything else as long as you're not trying to replace the open database that you're exectuting your code from.

-Dave


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to