PDA

View Full Version : Dependency Module: Visual FoxPro 9.0



Adam
06-21-2005, 03:35 PM
Installing the Visual FoxPro 9.0 Runtime

Overview
All programs developed with Microsoft Visual FoxPro 9.0 require a set of core runtime files in order to run. This article explains how to install this runtime with your Visual FoxPro application. These instructions assume you currently have the Visual FoxPro 9.0 runtime files installed on your development system via your Visual FoxPro 9.0 development software.

Background Information
Visual FoxPro 9.0 core runtime files include:

MSVCR71.DLL 7.10.3052.4
GDIPLUS.DLL 5.1.3097.0
VFP9RENU.DLL 9.0.0.2412
VFP9R.DLL 9.0.0.2412
VFP9T.DLL 9.0.0.2412

If your Visual Fox Pro 9.0 application uses HTML Help, you will also need:

foxhhelp9.exe 9.0.0.2412
foxhhelpps9.dll 9.0.0.2412

MSVCR71.DLL should be installed to the users system directory, represented by "%SystemFolder%". The rest of the files should be installed to the users Visual FoxPro Common Files directory, represented by: "%CommonFilesFolder%\Microsoft Shared\VFP".

Note: If you support additional runtime languages beyond English, these also must be added to your project. They should contain the same settings as the English language file VFP9RENU.DLL. They can be found on your development system in ..\Program Files\Common Files\Microsoft Shared\VFP.

Usage Instructions
To incorporate the Visual FoxPro 9.0 runtime in your projects, follow the steps below:


Unzip the contents of VFP9_Template.zip (see bottom of article) into any folder on your system.
Open the Setup Factory 7.0 project file VFP9_Template.sf7 that was extracted from the ZIP file.
Select all of the files in the file list and copy the file references (Ctrl+C or right-click and select Copy). If your application does not use HTML Help, you can exclude the files foxhhelp9.exe and foxhhelpps9.dll when copying.
Paste these file references into your current working project file list that contains the rest of your application files.
If you are installing the controls to the Common Files folder, you must also add the following action to your project after the files have been installed:
File.Run(SessionVar.Expand("%CommonFilesFolder%\\Microsoft Shared\\VFP\\FoxhHelp9.exe"), "/regserver", "", SW_SHOWNORMAL, false);

Note: Order matters, so make sure they are added in the same order as the template.

Following the above steps has added the required Visual FoxPro 9.0 runtime files to your project with all of their required settings.

Note: Currently the source paths for 6 of the 7 runtime files contain #COMMONFILESDIR#\Microsoft Shared\VFP. If the files you added display in red, this means that their local source paths are not where your Visual FoxPro runtime files are located. In this case, go into each of their properties and change their local folder path to where they exist on your development system.

The attached project file is designated "read-only" to ensure that it's settings do not get modified accidentally. If you wish to make modifications to it, you can uncheck its read-only attribute in its file properties.


Information Links
Microsoft's Visual FoxPro Homepage (http://msdn.microsoft.com/vfoxpro/)


Created By: Indigo Rose Software (6/21/2005)
Last Revision: June 21, 2005 (003)