Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select path to data when installing app
Message
De
31/12/2004 09:27:45
 
 
À
31/12/2004 07:05:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00973508
Message ID:
00973528
Vues:
15
Hi,

you have quite a few options.

1. The simplest for you is to distribute the config.fpw separate from the executable and let the user change the PATH= statement as desired.

2. use a file (for example an INI file a text file or a DBF) to store the path information and read it from there. You will then need some way of setting this value when the program is first installed.

3. Use the registry to store and retrieve the path information. Again you will need some way to update the information on first install.

I tend to store it in the registry. When the application is first run, if the DBC (or some other file) cannot be found I prompt the user to locate the file and then store that path in the registry.

Hope that helps.

>Hi,
>This is probably easy to most of you but is my first trial.
>I have an app that utilitize free tables stored in the server
>under a directroy "app_data"
>
>To access the data I have this set path command hard coded
>in my main.prg: SET PATH TO "F:\APP_DATA"
>
>This is working fine except now I would like my program to be
>installable on any workstation on which the server is mapped to
>some other drive letters instead of F:. What changes do my program
>need in order to allow the user to set up the correct data data path
>while running setup of the app? How exactly is it done?
>
>Thanks for all help.
>
>--
>jw
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform