Hi all,
I've been having a problem with building VFP EXE's for a past couple years but now it's worse than ever.
After building the EXE, the File Description, File Version, Product Name, Product Version and Copyright are not in the EXE file.
This is a sporadic issue - completely hit & miss.
Usually, this info is not in the EXE but, every once in a while, it is.
Has anyone seen this before or have any idea what the cause might be ?
OR...
Is there a way to add this info to the EXE after it's built?
Thanks,
Carl
Hi Carl,
never seen that; if I had, I'd have suspected the pjx
I have seen it before, it happens often after a failed project build (i.e. the app is running) and the next build has no version/exe info. Usually packing/rebuild the project and build with recompile all will take care of it.
Thanks guys,
I had suspected the PJX as well but it has not turned out to be consistent.
I also had issues with an MNX file that caused intermittent build failures but that also did not prove out to be consistent in the long run.
I thought it was restricted to my two vertical apps but then found that I get the same thing with my WC app. Fortunately, it's not important with the WC app because updating is a simple file copy. But for my verticals, the version is used by the installer to determine if the EXE gets installed or not.
I literally run BUILD EXE over and over until it finally works. What a pain.
Thanks,
Carl
I've never seen that. I would make sure you don't have another project sitting around somewhere else that may not have this version info in it?
Are you building with the RECOMPILE switch? That should completely nuke everything and recompile and repackage the final output file completely.
I always build with:
build exe Timetrakker from timetrakker recompile
+++ Rick ---
Yep, I use the RECOMPILE switch.
I've also tried building from both a command line as you do and using the project manager.
I've tried deleting the EXE before building.
I've tried explicitly running VFP as administrator and trying all of the above.
Nothing I've tried has consistently had any effect.
Do you know if there is a way to add properties to the EXE after the build process?
Thanks,
Carl
I don't think I've ever run into this issue, but I can recall a couple of times over the years where projects seemed to go "off" and would not compile and/or build correctly. No apparent errors but evidently something got corrupted in the PJX. I ended up creating a new project with a different name, adding the main PRG, and letting it pull in the rest of the files. That seemed to take care of whatever issues I'd been having. Once I was sure the revised project was producing a valid exe, I zapped the old project and renamed the new one to the original name.
You might give that a try and see if the new project includes the missing properties. If the problem persists it would seem that there is something amiss in your development environment. Have you tried a fresh install of VFP?
--stein
Hi Stein,
Build errors are rare. During build, everything seems to go OK but the EXE is just missing properties. But every now and then it builds OK.
I also considered the IDE as the possible cause, as you pointed out.
Thanks,
Carl