Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to update an installation without overwriting tables
Message
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00098712
Message ID:
00098769
Views:
37
>>>When a table is added to a DBC it is linked with a unique id. One cannot overwrite an old table with a new one by the same name because the ids won't match and the DBC will complain.
>>>Question: What is the best method to update an EXE of an previously installed app without overwriting the old data tables (hence, the data)?
>>
>>I put my non-data application files in a subdirectory of my development tree called "PROD" (production). I then create my setup files starting in this directory. This prevents any inclusion of data files. I can also mimick my application tree under this subdirectory if needed.
>
>Thanks Mark, and the others who contributed! (UT is the best support system in existance!)
>This sounds like the approach I want to take. Copying the EXE will work only when users are accessing from a network installed app, which is a method I already use. But, some users will be installing the app onto standalones using the DISK144 method, and I am not comfortable with them dragging the EXE from a floppy if they didn't do the normal install. The idea about using the ALTER TABLE command in a preinstall EXE sounds neat too!
>
>Jerry

Jerry,

In addition to all the other good advice, you can't beat Stonefield Database Toolkit (SDT) when it comes to making it easy to update tables in an installed app. All you need to do is call the Update( ) method, which reads the extended DBC information and does the ALTER TABLE stuff for you. It even comes with a NeedUpdate( ) method you can call to see if any updates are pending! (No, I'm not affiliated with Stonefield, but I am a fan of Doug's work!).

HTH,
Rick
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform