# Delphi 2007 version values not working

**URL:** https://www.finalbuilder.com/forums/t/delphi-2007-version-values-not-working/1159
**Category:** Discussion
**Created:** [March 26, 2009, 11:40am UTC](https://www.finalbuilder.com/forums/t/delphi-2007-version-values-not-working/1159 "2009-03-26T11:40:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dressel](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/9e8a1a/32.png) [@dressel](https://www.finalbuilder.com/forums/u/dressel)
#### Post date: [March 26, 2009, 11:40am UTC](https://www.finalbuilder.com/forums/t/delphi-2007-version-values-not-working/1159/1 "2009-03-26T11:40:12Z")

</div>

FB 5.5.0.707

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

SkipAction = not CreateEXEs  
EMailMsg = ""  
  
if CreateExes then  
&nbsp; Action.MajorVersion = Year(Date)  
&nbsp; Action.MinorVersion = Month(Date)  
&nbsp; Action.ReleaseVersion = Day(Date)  
&nbsp; 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

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 27, 2009, 5:16am UTC](https://www.finalbuilder.com/forums/t/delphi-2007-version-values-not-working/1159/2 "2009-03-27T05:16:35Z")

</div>

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?
