# Version Info update in .rc file

**URL:** https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677
**Category:** Discussion
**Created:** [November 30, 2007, 12:29pm UTC](https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677 "2007-11-30T12:29:26Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![croeper](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/croeper/32/90_2.png) [@croeper](https://www.finalbuilder.com/forums/u/croeper)
#### Post date: [November 30, 2007, 12:29pm UTC](https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677/1 "2007-11-30T12:29:26Z")

</div>

Hi there,  
  
I have several projects (Applications and DLLs) that have a corresponding .rc file containing version information. I want to keep the version info in the .rc file, because of the varying information throughout the files handling is easier than in lot's of compile actions or&nbsp; different property sets.  
What I want to do is read the version info from the .rc file into FB, update some information (Inc(BuildNumber), Update(FileVersion, OriginalFilename) etc.) and save this back into the .rc, then compile. It would also be OK to compile the version info into the build using property sets.  
I figured how I can update version info .rc files using the "Win32 Version Info Updater" action, but as far as I can see it only writes properties from a property set into the file; it does not read the info into the property set before. The problem is e.g. the build number, constantly increased with every build is always zero, as the initial value is not read from the .rc file.  
As said above I do not want to have a property set for each project. Is there a way to read version information from an .rc into a property set? Is there another way to accomplish the above, or am I missing something obvious?  
I am using FB 5.5.0.518 Professional Edition.  
  
Thanks for the help, best regards,  
  
christoph  
  
P.S.: Btw, although rather obvious I did not find any help entry for the "Win32 Version Info Updater" action.

---

<div class="post-metadata">

### Author: ![croeper](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/croeper/32/90_2.png) [@croeper](https://www.finalbuilder.com/forums/u/croeper)
#### Post date: [December 2, 2007, 9:51am UTC](https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677/2 "2007-12-02T09:51:45Z")

</div>

Hi,  
  
I found an old post from Oct 2006 stating the same problem. The reply was that there is no reading version info from an .rc file, but that it is put on the enhancement list. What is the status of this enhancement?  
Best regards,  
  
christoph

---

<div class="post-metadata">

### Author: ![mikep](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@mikep](https://www.finalbuilder.com/forums/u/mikep)
#### Post date: [December 4, 2007, 8:38am UTC](https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677/3 "2007-12-04T08:38:39Z")

</div>

christoph,   
  
 We had a similar issue here. We solved it by using a separate “versionInfo.h” file that contained only a version string (e.g. #define VERSION 3,0,0,10), and we included in the .rc file via #include.   
  
 To increment our version within FinalBuilder, we used two actions and some Javascript:   
  
 ReadTextFile [versionInfo.h] (read the current version into a variable, e.g. “#define VERSION 3,0,0,10”)   
 - ‘AfterAction’ script: parse the string and increment the build number (for us, the least significant number)   
 CreateTextFile [versioninfo.h] (create a new versionInfo.h file containing only the new version info (e.g. “#define VERSION 3,0,0,11”)   
  
 That’s it. Works very well for us. Hope this helps.

---

<div class="post-metadata">

### Author: ![croeper](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/croeper/32/90_2.png) [@croeper](https://www.finalbuilder.com/forums/u/croeper)
#### Post date: [December 5, 2007, 3:51am UTC](https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677/4 "2007-12-05T03:51:26Z")

</div>

Hi Mike,

thanks for your insight. That is a good idea, I even think about using the ReadTextFile action with the OnReadLine event and a script to read and parse the .rc file into a property set, and use the Win32 Version Info Updater to write the information back to the .rc file.

Anyway I still vote for a Load PropertySet from VersionInfo .rc file action; I think it would be a useful enhancement. Anyone from the FinalBuilder stuff want to jump in?

Cheers,

christoph

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [December 5, 2007, 11:06am UTC](https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677/5 "2007-12-05T11:06:52Z")

</div>

Christoph,   
  
 We agree it would be useful, it is most definitely on our to-do list. It’s a big list, but it is somewhere near the top… 😉   
  
 Regards,   
  
 Angus

---

<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: [December 2, 2008, 9:05am UTC](https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677/6 "2008-12-02T09:05:30Z")

</div>

Hi Guys,

Any update on the status of this enhancement?

Regards,  
Tracey

---

<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: [December 3, 2008, 1:49am UTC](https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677/7 "2008-12-03T01:49:36Z")

</div>

Hi Tracy   
  
 We haven’t gotten to it yet. We’re a bit short staffed at the moment, but have some new people coming on board in the new year, so we’ll hopefully make some progress with the todo list then.

---

<div class="post-metadata">

### Author: ![jmlynch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/ba8739/32.png) [@jmlynch](https://www.finalbuilder.com/forums/u/jmlynch)
#### Post date: [December 14, 2009, 9:55am UTC](https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677/8 "2009-12-14T09:55:04Z")

</div>

For the record, I still want this.

---

<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: [December 15, 2009, 3:28am UTC](https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677/9 "2009-12-15T03:28:21Z")

</div>

Still on the todo list unfortunately.

---

<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: [December 17, 2009, 9:09am UTC](https://www.finalbuilder.com/forums/t/version-info-update-in-rc-file/677/10 "2009-12-17T09:09:58Z")

</div>

I vote for it too
