# Win32 Version Info Update does not work

**URL:** https://www.finalbuilder.com/forums/t/win32-version-info-update-does-not-work/3261
**Category:** Bugs
**Created:** [August 5, 2010, 6:01am UTC](https://www.finalbuilder.com/forums/t/win32-version-info-update-does-not-work/3261 "2010-08-05T06:01:25Z")
**Posts on this page:** 7
**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: [August 5, 2010, 6:01am UTC](https://www.finalbuilder.com/forums/t/win32-version-info-update-does-not-work/3261/1 "2010-08-05T06:01:25Z")

</div>

It appears that in FinalBuilder 7.0.0.515, the Win32 Version Info Updater action does not work. &nbsp;Rather than update the version info in my .rc file (like it did in FB6), this action now removes everything between the VS\_VERSION\_INFO VERSIONINFO line and the next comment (//). &nbsp;Verified this behavior with both FinalBuilder and FB Server 7.0.0.144.

Here is a snippet from my .rc file. &nbsp;The Win32 Version Info Updater action will remove everything from the line after&nbsp;VS\_VERSION\_INFO VERSIONINFO until the #endif line at the bottom.

&nbsp;

/////////////////////////////////////////////////////////////////////////////

//

// Version

//

&nbsp;

VS\_VERSION\_INFO VERSIONINFO

FILEVERSION 9,8,30,3

PRODUCTVERSION 9,8,30,3

&nbsp;FILEFLAGSMASK 0x3fL

#ifdef \_DEBUG

FILEFLAGS 0x01L

#else

FILEFLAGS 0x00L

#endif

&nbsp;FILEOS 0x40004L

FILETYPE 0x1L

&nbsp;FILESUBTYPE 0x0L

BEGIN

&nbsp;&nbsp; &nbsp;BLOCK "StringFileInfo"

&nbsp;&nbsp; &nbsp;BEGIN

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;BLOCK "040904b0"

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;BEGIN

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VALUE "CompanyName", "My Company\0"

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VALUE "FileVersion", "9.8.30.3\0"

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VALUE "LegalCopyright", "Copyright (c) 2011\0"

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VALUE "ProductName", "My Product\0"

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;VALUE "ProductVersion", "9.8.30.3\0"

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;END

&nbsp;&nbsp; &nbsp;END

&nbsp;&nbsp; &nbsp;BLOCK "VarFileInfo"

&nbsp;&nbsp; &nbsp;BEGIN

&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;VALUE "Translation", 0x409, 1200

&nbsp;&nbsp; &nbsp;END

END

#endif &nbsp; &nbsp;// English (U.S.) resources

/////////////////////////////////////////////////////////////////////////////

&nbsp;

&nbsp;

My current work-around is to use Search/Replace in File actions to manually look for the old version numbers and replace it with the new. &nbsp;This requires 2 actions, one with commas between numbers and one with periods between numbers.

---

<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: [August 5, 2010, 11:30am UTC](https://www.finalbuilder.com/forums/t/win32-version-info-update-does-not-work/3261/2 "2010-08-05T11:30:08Z")

</div>

I’m not able to reproduce this here, are you able to provide a sample rc file and project that shows this behavior?

---

<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: [August 9, 2010, 3:04am UTC](https://www.finalbuilder.com/forums/t/win32-version-info-update-does-not-work/3261/3 "2010-08-09T03:04:02Z")

</div>

Let me see what I can do. Would you prefer that I attach the files here?

---

<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: [August 9, 2010, 5:40am UTC](https://www.finalbuilder.com/forums/t/win32-version-info-update-does-not-work/3261/4 "2010-08-09T05:40:59Z")

</div>

Attached is a stripped-down version of my project that illustrates the issue.

The .rc file is in versioninfo.zip. &nbsp;The output file, after the Win32 Version Update Info action, is in the appropriately named .zip file.

It appears that with these changes, the Win32 Version Info Updater is correctly modifying the FILEVERSION attributes, but is blanking out the PRODUCTVERSION, and removing the

VALUE "ProductVersion", "9.8.30.4\0"

line. &nbsp;It is also removing the #ifdef conditions from the Version section of the .rc file.

Let me know if I can provide anything else.

[BuildInfo\_Failure.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/f/fb6acb232d7d37cde43d5266abba5230b197695f.zip) (8.708 KB)[VersionInfo.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/5/5da8022e35d69b4fe3ee4305f0d0955ca3792e3a.zip) (790 B)[VersionInfo\_\_-\_After\_Win32\_VersionInfoUpdate.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/6/64ac25ad079924a256bfcd379335f6253545e75b.zip) (829 B)

---

<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: [August 10, 2010, 3:48am UTC](https://www.finalbuilder.com/forums/t/win32-version-info-update-does-not-work/3261/5 "2010-08-10T03:48:57Z")

</div>

Hi   
  
 This should be fixed in the next update, however the issue with the #ifdef will remain, since our parser has zero knowledge of what is defined or not there is no way for us to deal with 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: [August 10, 2010, 11:49am UTC](https://www.finalbuilder.com/forums/t/win32-version-info-update-does-not-work/3261/6 "2010-08-10T11:49:34Z")

</div>

Please try this build : [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_549.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_549.exe)

---

<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: [August 10, 2010, 3:49am UTC](https://www.finalbuilder.com/forums/t/win32-version-info-update-does-not-work/3261/7 "2010-08-10T03:49:05Z")

</div>

It looks like that’s fixed it. Thanks!
