Jump to content

How can a user upgrade app and keep their data?


This topic is 5747 days old. Please don't post here. Open a new topic instead.

Recommended Posts


I'm developing an app that would be distributed as a run time. The data is not part of what's distributed - user would enter their own data. I'm trying to think ahead to when I want to distribute an improved version of the runtime in the future. How do you get data out of one version and into a modified one?

Some kind of export then re-import?

Right now (early in design) I am not using any external files. Should I be?

Thanks for your help.


Link to comment
Share on other sites

I'm in the same boat, distributing a runtime and designing the upgrade routine. I've collected many posts, but there doesn't seem to be one "best practice" out there.

Here's what I will try:

1. Use an installer for the runtime so that you know the path of "version 1."

2. User installs "version 2". Have a button on version 2 that lets user "Import from previous version?" I'm thinking of adding a check in the open script that if there are no records, having this dialog come up.

3. Now the fun. The script would find version1 and import into version2 (long import script, table by table, resetting ID counters after import to next serial).

But what if the script can't find version 1? How to handle that? Well, I came upon this link that I thought might help ( http://www.sumware.net/robfm/pickyourpath.php)

If I ask the user to find the version1 file, then I store its path. If they can't find it or pick the wrong file, (I can compare the name of the file that they picked to the name that they should pick, and if it's not correct), give an alert with a choice to pick again or give up on importing.

I also built an export script into version1 that exports the data into .fp7 files into a folder in My Documents just in case the file to file import doesn't work. I wish I had built a show all records in all tables script in version1, but I am hoping that my file to file script will find all records in version1 if I'm careful not to open the version1 file.

All this in a runtime. I'm will be starting to test this in January. I'll keep you posted if you'd like.

Link to comment
Share on other sites

  • 2 weeks later...

This topic is 5747 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.