# Custom Version information key/value disappears when building Delphi project

**URL:** https://www.finalbuilder.com/forums/t/custom-version-information-key-value-disappears-when-building-delphi-project/6700
**Category:** Bugs
**Created:** [January 21, 2020, 10:33am UTC](https://www.finalbuilder.com/forums/t/custom-version-information-key-value-disappears-when-building-delphi-project/6700 "2020-01-21T10:33:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tonbuurstede](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/d9b06d/32.png) [@tonbuurstede](https://www.finalbuilder.com/forums/u/tonbuurstede)
#### Post date: [January 21, 2020, 10:33am UTC](https://www.finalbuilder.com/forums/t/custom-version-information-key-value-disappears-when-building-delphi-project/6700/1 "2020-01-21T10:33:54Z")

</div>

When building a Delphi project which uses a custom version information key, the resulting executable no longer contains this key/value. Generate resource has been checked on the project tab.  
We experience this problem after updating FinalBuilder from version 8.0.0.2338.

 ![image](https://www.finalbuilder.com/forums/uploads/default/original/2X/f/f9be24ee542ff9773d509a34b67235e685d4f138.png)

---

<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: [January 22, 2020, 1:05am UTC](https://www.finalbuilder.com/forums/t/custom-version-information-key-value-disappears-when-building-delphi-project/6700/2 "2020-01-22T01:05:37Z")

</div>

The info is probably there if you inspect the resource (using something like reshacker), however windows doesn’t show it.

Microsoft’s [documentation](https://docs.microsoft.com/en-us/windows/win32/menurc/stringfileinfo-block) says the

> The _string-name_ parameter specifies one of the following predefined names

However developers have been bending the rules on this for years to put custom name/value pairs in there, and up to Windows XP the file properties dialog would show that info, but later versions of windows only show the predefined names.

---

<div class="post-metadata">

### Author: ![tonbuurstede](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/d9b06d/32.png) [@tonbuurstede](https://www.finalbuilder.com/forums/u/tonbuurstede)
#### Post date: [January 22, 2020, 9:08am UTC](https://www.finalbuilder.com/forums/t/custom-version-information-key-value-disappears-when-building-delphi-project/6700/3 "2020-01-22T09:08:28Z")

</div>

The application is reading it’s own version information, so the first thing we did was to check for it using Resource Hacker. The Key/Value pair for DatabaseVersion was no longer there. It appeared again when we placed the previously used version (8.0.0.2338) of FinalBuilder back on the build server.

---

<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: [January 22, 2020, 10:10am UTC](https://www.finalbuilder.com/forums/t/custom-version-information-key-value-disappears-when-building-delphi-project/6700/4 "2020-01-22T10:10:51Z")

</div>

Is the value there in the generated .rc file? I’m not able to reproduce this here, so I would really need to see your FB project file - either send to support @ [finalbuilder.com](http://finalbuilder.com) or send to me as private message (click on my username and then Message).

---

<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: [January 23, 2020, 5:18am UTC](https://www.finalbuilder.com/forums/t/custom-version-information-key-value-disappears-when-building-delphi-project/6700/5 "2020-01-23T05:18:53Z")

</div>

Ok, this turned out to be nothing to do with the Delphi action but a bug in the Set Variable action when using a property set expression in the new value.

This build has the fix

[https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_2795.exe](https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2795.exe)

---

<div class="post-metadata">

### Author: ![tonbuurstede](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/d9b06d/32.png) [@tonbuurstede](https://www.finalbuilder.com/forums/u/tonbuurstede)
#### Post date: [January 23, 2020, 8:58am UTC](https://www.finalbuilder.com/forums/t/custom-version-information-key-value-disappears-when-building-delphi-project/6700/6 "2020-01-23T08:58:51Z")

</div>

Vincent,

Thank you for the impressively quick fix.

Ton
