# VBScript: GetVersionInfoKey working in FB6 but not in FB7

**URL:** https://www.finalbuilder.com/forums/t/vbscript-getversioninfokey-working-in-fb6-but-not-in-fb7/1904
**Category:** Discussion
**Created:** [November 28, 2011, 1:23am UTC](https://www.finalbuilder.com/forums/t/vbscript-getversioninfokey-working-in-fb6-but-not-in-fb7/1904 "2011-11-28T01:23:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [November 28, 2011, 1:23am UTC](https://www.finalbuilder.com/forums/t/vbscript-getversioninfokey-working-in-fb6-but-not-in-fb7/1904/1 "2011-11-28T01:23:49Z")

</div>

Up to FB6 we could use Action.GetVersionInfoKey("Ext") to determine the file extension of a compiled Delphi project. Since we migrated to FB7 the result of this function is always empty. The help file only mentions this functions without further explanation and is still at a state of Delphi 2007.

What needs to be changed to get the correct result?

&nbsp;

Best regards

pfennig

---

<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: [November 28, 2011, 11:50am UTC](https://www.finalbuilder.com/forums/t/vbscript-getversioninfokey-working-in-fb6-but-not-in-fb7/1904/2 "2011-11-28T11:50:51Z")

</div>

I’m guessing that you must have added that version info key to the action in FB6 as there is no standard “Ext” version info key. If I add that key on the version info page then the script works fine.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [November 29, 2011, 10:36am UTC](https://www.finalbuilder.com/forums/t/vbscript-getversioninfokey-working-in-fb6-but-not-in-fb7/1904/3 "2011-11-29T10:36:38Z")

</div>

Yes, indeed, the "Ext" version info key was manually added to the FB6-script. But I created the FB7-script by openeing the FB6-script in FB7 und saving it as FB7-script. The key didn't get saved, and when I add it again manually then the first call gives the correct result, but then "Ext" disappears again.

Currently, my solution is the VBScript line:

Action.SetVersionInfoKey "Ext", "scr"

&nbsp;

This works, but I think FB7 should remember my entries in the property list.

&nbsp;

Best regards

pfennig

---

<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: [November 29, 2011, 12:54pm UTC](https://www.finalbuilder.com/forums/t/vbscript-getversioninfokey-working-in-fb6-but-not-in-fb7/1904/4 "2011-11-29T12:54:36Z")

</div>

Which build of FB7 are you using? What other settings do you have on the action? I just a quick test, added a delphi action, added a new key, saved and closed the project and then re-opened it and the key is there.
