# "Use Version Numbers from Project Settings File" - not working as expected for Delphi 2006

**URL:** https://www.finalbuilder.com/forums/t/use-version-numbers-from-project-settings-file-not-working-as-expected-for-delphi-2006/1003
**Category:** Discussion
**Created:** [October 9, 2008, 2:00am UTC](https://www.finalbuilder.com/forums/t/use-version-numbers-from-project-settings-file-not-working-as-expected-for-delphi-2006/1003 "2008-10-09T02:00:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tandre](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@tandre](https://www.finalbuilder.com/forums/u/tandre)
#### Post date: [October 9, 2008, 2:00am UTC](https://www.finalbuilder.com/forums/t/use-version-numbers-from-project-settings-file-not-working-as-expected-for-delphi-2006/1003/1 "2008-10-09T02:00:53Z")

</div>

I think I've found a bug in FinalBuilder 6 (it's also in the latest update released yesterday).

&nbsp;

When I check the checkbox "Use Version Numbers from Project Settings File" in a Delphi Project the version is not loaded from the .bdsproj file - so it will always report 1.0.0.0 (for the first build). I also think I know what's wrong, if I compare the .bdsproj brefore and after the following has happened.

1. The tag "VersionInfo" for name "IncludeVerInfo" has changed from True to 1 (and next build to 2 etc.)

2. The tag "VersionInfoKeys" for name "CompanyName" has changed from "Visionutveckling AB" to "1.0.0.0" after the first rebuild - the next rebuild the version is changed to 1.1.1.1 etc.

So it seems that FinalBuilder reads and writes the wrong tags, plus that autoincrement somehow changes 1.0.0.0 to 1.1.1.1 - which might be a totally different error. Please find the differences below (the original file listed first);

&nbsp;

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; **True**  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 364  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 1053  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 1252  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; **Visionutveckling AB**  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2.2.0.364  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (C) Copyright Visionutveckling AB  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; svara.exe  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Vision 80/20  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2.2  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;

This changes to (this was after second rebuild):

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; **2**  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 364  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; False  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 1053  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 1252  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; **1.1.1.2**  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2.2.0.364  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (C) Copyright Visionutveckling AB  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; svara.exe  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Vision 80/20  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2.2  
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;

Regards,

Peter Olsson

---

<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: [October 10, 2008, 1:26am UTC](https://www.finalbuilder.com/forums/t/use-version-numbers-from-project-settings-file-not-working-as-expected-for-delphi-2006/1003/2 "2008-10-10T01:26:02Z")

</div>

Hi Tomas  
  
Thanks for the report, I was able to reproduce the issue (it was writing using the wrong xpath statement), I have checked in a fix, we'll post a link to a build with the fix shortly.

&nbsp;

---

<div class="post-metadata">

### Author: ![tandre](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@tandre](https://www.finalbuilder.com/forums/u/tandre)
#### Post date: [October 13, 2008, 9:12am UTC](https://www.finalbuilder.com/forums/t/use-version-numbers-from-project-settings-file-not-working-as-expected-for-delphi-2006/1003/3 "2008-10-13T09:12:20Z")

</div>

Thanks for the answer!

&nbsp;

When do you think next build will be released? We're not able to use FinalBuilder until this is fixed, so I'd really appreciate a fix as soon as possible.

&nbsp;

---

<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: [October 13, 2008, 3:00am UTC](https://www.finalbuilder.com/forums/t/use-version-numbers-from-project-settings-file-not-working-as-expected-for-delphi-2006/1003/4 "2008-10-13T03:00:53Z")

</div>

Hi Tomas

Sorry for the delay, here's the build :

[https://www.finalbuilder.com/downloads/finalbuilder/620/FB620\_1084.exe](https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1084.exe)

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![tandre](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/54ee81/32.png) [@tandre](https://www.finalbuilder.com/forums/u/tandre)
#### Post date: [October 13, 2008, 3:38am UTC](https://www.finalbuilder.com/forums/t/use-version-numbers-from-project-settings-file-not-working-as-expected-for-delphi-2006/1003/5 "2008-10-13T03:38:51Z")

</div>

Great, thanks!
