Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically Setting Data Paths
Message
 
To
17/03/2008 05:32:27
Michael Gass
Instructional Software, Inc.
Kirkland, Washington, United States
General information
Forum:
Visual FoxPro
Category:
CodeMine
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01302579
Message ID:
01302619
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform