FoxPro Programming
Properties not built into EXE file
Gravatar is a globally recognized avatar based on your email address. Properties not built into EXE file
  Carl Chambers
  All
  Mar 11, 2017 @ 03:57pm

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

Gravatar is a globally recognized avatar based on your email address. re: Properties not built into EXE file
  FoxInCloud Support - Thierry N.
  Carl Chambers
  Mar 12, 2017 @ 03:08am

Hi Carl,

never seen that; if I had, I'd have suspected the pjx

Gravatar is a globally recognized avatar based on your email address. re: Properties not built into EXE file
  Tuvia Vinitsky
  Carl Chambers
  Mar 13, 2017 @ 02:22pm

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.

Gravatar is a globally recognized avatar based on your email address. re: Properties not built into EXE file
  Carl Chambers
  Tuvia Vinitsky
  Mar 14, 2017 @ 09:49am

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

Gravatar is a globally recognized avatar based on your email address. re: Properties not built into EXE file
  Rick Strahl
  Carl Chambers
  Mar 14, 2017 @ 04:01pm

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 ---

Gravatar is a globally recognized avatar based on your email address. re: Properties not built into EXE file
  Carl Chambers
  Rick Strahl
  Mar 15, 2017 @ 02:02pm

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

Gravatar is a globally recognized avatar based on your email address. re: Properties not built into EXE file
  Stein Goering
  Carl Chambers
  Mar 18, 2017 @ 08:12pm

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

Gravatar is a globally recognized avatar based on your email address. re: Properties not built into EXE file
  Carl Chambers
  Stein Goering
  Mar 22, 2017 @ 01:14pm

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

© 1996-2024