# Win32 Version Info Updater

**URL:** https://www.finalbuilder.com/forums/t/win32-version-info-updater/2650
**Category:** Bugs
**Created:** [July 27, 2006, 11:22am UTC](https://www.finalbuilder.com/forums/t/win32-version-info-updater/2650 "2006-07-27T11:22:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tomcos](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/cab0a1/32.png) [@tomcos](https://www.finalbuilder.com/forums/u/tomcos)
#### Post date: [July 27, 2006, 11:22am UTC](https://www.finalbuilder.com/forums/t/win32-version-info-updater/2650/1 "2006-07-27T11:22:18Z")

</div>

Product: **FinalBuilder 4.1.0.256**  
  
OS: **fails on Windows 2000**  
(but it **works on Windows XP**!)  
  
Action: **Win32 Version Info Updater** using a **Win32 Version Info PropertySet** :  
  
 - MajorVersion  
 - MinorVersion  
 - ReleaseVersion  
 - BuildVersion  
 - CompileDate  
  
updating some [VS.NET](http://VS.NET) 2005 Resource Files (\*.rc):

```
Updating property : MajorVersion - to : 11
Updating property : MinorVersion - to : 0
Updating property : ReleaseVersion - to : 0
Updating property : BuildVersion - to : 6
Updating property : CompileDate - to : 2006.07.27.09.49
Updating property : CompileDate - to : 2006.07.27.09.49
**Error Parsing File : Unexpected FILEVERSION on line : 85**
```
  
Here are the resource file contents:  
  
VS\_VERSION\_INFO VERSIONINFO  
FILEVERSION 11,0,0,5  
PRODUCTVERSION 11,0,0,5  
 FILEFLAGSMASK 0x17L  
#ifdef \_DEBUG  
FILEFLAGS 0x01L  
#else  
FILEFLAGS 0x00L  
#endif  
 FILEOS 0x4L  
FILETYPE 0x1L  
 FILESUBTYPE 0x0L  
BEGIN  
 BLOCK “StringFileInfo”  
 BEGIN  
 BLOCK “040904b0”  
 BEGIN  
 VALUE “CompileDate”, “2006.07.27.09.49\0”  
 VALUE “FileDescription”, “Application\0”  
 VALUE “FileVersion”, “11.0.0.5\0”  
 VALUE “InternalName”, “Application\0”  
 VALUE “LegalCopyright”, “Company © 2006\0”  
 VALUE “OriginalFilename”, “Application.exe\0”  
 VALUE “ProductName”, “Application\0”  
 VALUE “ProductVersion”, “11.0.0.5\0”  
 END  
 END  
 BLOCK “VarFileInfo”  
 BEGIN  
 VALUE “Translation”, 0x409, 1200  
 END  
END  
  
  
Strange thing is that line 85 is this one:  
 VALUE “FileDescription”, "Application\0"  
  
  
The problem is that our nightly builds now keep failing all the time because that dedicated machine is Windows 2000 and the script was developed on a Windows XP (where it works perfectly). Mapping the source data (resource) through a network mapping and executing FinalBuilder with the same script (but on a Windows XP machine!) works, so it must be a Windows 2000 \<\> XP thing I suppose.  
  
Also, Visual [Studio.NET](http://Studio.NET) 2005 has no problems with the resource file, not even on Windows 2000.  
  
Thanks a lot!  
Tom.

---

<div class="post-metadata">

### Author: ![tomcos](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/cab0a1/32.png) [@tomcos](https://www.finalbuilder.com/forums/u/tomcos)
#### Post date: [July 27, 2006, 12:03pm UTC](https://www.finalbuilder.com/forums/t/win32-version-info-updater/2650/2 "2006-07-27T12:03:26Z")

</div>

Hmm, our nightly build PC still had version **FinalBuilder**  **4.1.0.228** and not **FinalBuilder 4.1.0.256**. With that new version, it seems to parse the resource file correctly. Sorry for any inconvenience…

---

<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: [July 28, 2006, 2:41am UTC](https://www.finalbuilder.com/forums/t/win32-version-info-updater/2650/3 "2006-07-28T02:41:56Z")

</div>

Hi Tom,  
  
Glad you got it sorted out.  
  
- Angus
