Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runinng VFP exe from a CD

Status
Not open for further replies.

GlenGodbold

Programmer
Mar 5, 2001
14
GB
Does anyone know if it possible to run a VFP exe file from a CD (eg by autorunning) WITHOUT running a setup. We are trying to avoid situations where a network has locked users out from installing executables, so that users can simply insert the CD, use the program and then exit.

Thanks for any suggestions
 
GlenGodbold

You can run VFP from a CD, for instance to demo an application without installing runtime files, providing you have Vfp6r.dll and Vfp6renu.dll in the same folder on the CD as the .exe.

Other runtime files may also be required depending on the application's requirements.

Autorun.inf should contain:-

[autorun]
open=myapp.exe

Chris :)
 
Just one additional tidbit I'd like to add when running from a CD, remember to include a config.fpw (either compiled into the EXE or in the same folder as the EXE on the CD) that includes RESOURCE=OFF.

Because if you omit it, VFP will attempt to create Foxuser.dbf in your EXE directory each time you execute the EXE. The result will be an error like File Access denied because the CD is read-only (unless of course, the drive is a CDR(W) and the disk is writable).

Happened to me last year, took me two days to figure it out. :) Jon Hawkins
 
Thanks

We've got that far testing in-house (though the set reso hadn't occurred to us), but we've got a problem that when our client tries to run the CD gets an 'invalid NT file image' error message. Does anyone know what that means? (I don't think it's a bad disk as it ran on our machines before we sent it out)
 
Depending on the version of the VFP runtime files, there may be system files (DLLs, TLBs, etc.) that may need to be updated so they are compatible. This is especially true if you are using VFP SP4/5 and the workstations are a) "original" installs of Win 95/98 (and haven't been kept up to date with MS supplied patches), b) WinNT anything less than 4.0 SP4.

Also if your application uses any MS or third party controls, these may be missing or out of date and they must be registered on the workstation to be used.

Rick
 
I want a solution of my sepecfic problem i wnat to give a progeamme for TEst to somone so that he give me his opion but he has no VFP I have made in VPF v5. I want to give home only standalone EXE file.

What commands and steps will be needed to me to Make it
so that he may run it on his computer
I never made EXe file stand alone in VFP 5 but I used to maek it with build exe in fp26
PLESE HELP TO MAKE IT WITH FULL INSTURCTION
THIS MAY HELP OTHER AS WELL
 
As has been mentioned here many times, you can't have just an .exe to run a VFP program. You also have to have the VFP runtime modules. the link gives a list of the needed files for VFP 6.0. I don't know offhand what the requirements are for VFP 5 but I suppose you can search the microsoft site for it.

Dave Dardinger
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top