Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Setup Wizard for Network Deployment
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00233646
Message ID:
00233658
Views:
25
One way to do this is to get your forms to point their tables at the current of specified directory when they load. You would set your forms to not autopen your tables.

In your main.prg determine the current directory and set up global vars for the paths

* set the application directory
gcAppPath = sys(2003)
gcDBPath = alltrim(gcAppPath)+"\data\"
gcDBName = "staffsched.dbc"


* in the load method of all of your forms (or in your form base class)
* ENSURE DATABASE AND TABLES ARE POINTING TO CURRENT DIRECTORY
thisform.SetAll("Database",gcDbPath+gcDbname,"Cursor")
* open the tables again
thisform.dataenvironment.opentables()

* note this only works if all tables are in a database container, the logic is slightly more complex for free tables

>Hi...I'm getting ready to deploy Opus 1, on a network. I've been developing this on my home network but now need to be able to deploy on multiple workstations with the data files on a Novell server and an .EXE file located on each workstation. The environment at the client site is different than my own...(different drive mappings, folder names, you name it.).
>
>So my question is, can you use the setup wizard to deploy this thing on client machines? Some of the things I'm worrying about are:
>
>1. The project file so far, includes the data files (.DBC and tables)
>2. The data environment also includes the data files (there is a data environment for each form.)
>
>
>Since the Setup Wizard includes everything in the subdirectory, I'm thinking that I could remove the data files and place them on my home server, and then rebuild the project. However, unless the drive mappings, etc are identical, the client's executable wouldn't know where to find the data. (Is it smart enough to ask the first time and then remember? I don't think so.).
>
>The app builds and deploys fine as a standalone application. I'm using VFP 6.0 with the latest service pack (3)
>
>Any suggestions would be greatly appreciated.
>
>Thanks.
>
>---- Larry
Previous
Reply
Map
View

Click here to load this message in the networking platform