Delphi 2007 version values not working

FB 5.5.0.707

I have the following BeforeAction script for a Delphi 2007 compile:


SkipAction = not CreateEXEs
EMailMsg = ""

if CreateExes then
  Action.MajorVersion = Year(Date)
  Action.MinorVersion = Month(Date)
  Action.ReleaseVersion = Day(Date)
  Action.UsePackages = False
...
end if

This worked fine in D7, but in D2007, the version information is not being set. I am quite sure the CreateExes is True.

Anything I might look at?

Thank you,

Ed Dressel

There are so many options that could change how this works that it might be best to send your project to support so we can take a look.

The most obvious one to look at is to make sure “Regenerate Resource” is enabled. Also, make sure the project source is actually including it’s res file (with {$R *.res}), this is a common source of confusion.

Take a look at the log, does it say it’s compiling the resource file?