Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically Setting Data Paths
Message
 
À
17/03/2008 05:32:27
Michael Gass
Instructional Software, Inc.
Kirkland, Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
01302579
Message ID:
01302619
Vues:
12
>Requiring my users to identify the data paths when they first install the application seems to be too much for them to handle. I would like to programmatically set the data paths during installation so the install dialog is not called. After installation the user can move the data folders and identify the new paths but many do not have networks and will never change the data paths from:
>
>cpathlocal = “C:\ProgramData ISI\biz_local\”
>cpathshared = “C:\ProgramData ISI\biz_shared\”
>cpathcommon = “C:\ProgramData ISI\biz_common\”
>
>Setting class properties in appapplication and cmapplicationmanager has not worked. Does anyone have a suggestion on how this should be handled?


Hi Michael.

These paths are written in the registry, under HKEY_LOCAL_MACHINE\SOFTWARE\YourCompanyName\YourApplicationName\1.0\Paths

There you get Common, Local and Shared.

Maybe if you play with them you can accomplish what you are looking for.

Cheers.
Ivan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform