Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Builder and Setup frustrations - Help, please!
Message
 
À
07/01/2000 15:24:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00314690
Message ID:
00314760
Vues:
25
Yes. That results in a different error - 'Files have moved - please validate the database' or words to that effect.

Some of this may be due to the fact that the development files are in a different path than the target path.

My original development files are in the path 'C:\Program Files\Microsoft Visual Studio\afca'. I intend that the runtime files go in 'C:\Program Files\AFCA'.

The thing that is so maddening is that the Help files give only vague instructions. They make reference to 'required files', but give no clues as to what considerations make a file 'required'.

From the 'Help':
"Before you build your application, make sure that your project includes the necessary files for your application as well as any additional resource files, such as graphics files or templates." "When your application project contains all the necessary files, you're ready to build a distributable file. You can build your project as a standard application that only runs when Visual FoxPro is present, or as an executable application that runs without Visual FoxPro."

" Now that you’ve considered all the requirements and options that Visual FoxPro provides, and built an application from your files, follow these steps:

Create a distribution directory.
Copy your application files from the project to the appropriate locations in your distribution directory.
Create distribution disks.
Creating a Distribution Directory
The distribution directory contains copies of all the project files that comprise your application. The structure of this distribution tree represents the way the Setup routine created by the Setup Wizard will install files on a user’s machine."
(End of help quote)

Copying the files to the 'Distribution directory' apparently breaks the paths.

I tried building the files from the development directory, but they didn't work when installed on the target machine.

I've been working on this for two days, now, and seem to be losing ground with every attempt.

Any other ideas?

Thanks,
Neil




>Did you copy the DBC also in the target folder?


>>I'm having problems building a standalone .EXE and getting it to work.
>>Can someone please tell me what I need to do different?
>>
>>The app is a simple visitor registration screen for a trade show booth. The project contains a database having two tables: Registration and Setup. The App also created a free table Afca_app.
>>There are two forms: Main and Registration. Main permits certain control functions, Registration contains a graphic and the text fields being filled in. There are no reports and no class libraries. The Code group contains a framework file Afca_app, a Main program, and a newid routine for primary keys, and SETOBJRF. The Other group includes the graphic file used on the registration form.
>>
>>I have created a target directory under c:\program files\afca, and a distribution files directory C:\vfp distrib.
>>
>>I have tried many variations on this process, but here is the simple one: With the project open, I choose Build. Select Win32 executable, recompile all files and display errors. For Save As, I select C:\Program Files\AFCA. No error messages appear.
>>
>>I then use Tools, Wizards, Setup and follow the process to build the distribution disks. I specify only the VFP runtime components, direct it to the disk images directory, fill in the setup options, specify the default destination as C:\Program files\afca, and don't change the file settings. I note that the only thing in this list is the .EXE file - no tables are listed. Finish, and the files are built.
>>
>>When I install the files on the target system, it won't run because it can't find the database tables.
>>
>>If I copy the database tables into the target directory, then rebuild and install, I get an error box that the tables can't find the .dbc.
>>
>>I guess I'm not getting the correct files into the target directory. I thought the Build EXE was supposed to take care of this. Which files do I need to locate and move to the target directory? Or do I need to copy the entire project directory structure into it?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform