Win32 Version Info Update does not work

It appears that in FinalBuilder 7.0.0.515, the Win32 Version Info Updater action does not work.  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 (//).  Verified this behavior with both FinalBuilder and FB Server 7.0.0.144.

Here is a snippet from my .rc file.  The Win32 Version Info Updater action will remove everything from the line after VS_VERSION_INFO VERSIONINFO until the #endif line at the bottom.

 

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

//

// Version

//

 

VS_VERSION_INFO VERSIONINFO

FILEVERSION 9,8,30,3

PRODUCTVERSION 9,8,30,3

 FILEFLAGSMASK 0x3fL

#ifdef _DEBUG

FILEFLAGS 0x01L

#else

FILEFLAGS 0x00L

#endif

 FILEOS 0x40004L

FILETYPE 0x1L

 FILESUBTYPE 0x0L

BEGIN

    BLOCK "StringFileInfo"

    BEGIN

        BLOCK "040904b0"

        BEGIN

            VALUE "CompanyName", "My Company\0"

            VALUE "FileVersion", "9.8.30.3\0"

            VALUE "LegalCopyright", "Copyright (c) 2011\0"

            VALUE "ProductName", "My Product\0"

            VALUE "ProductVersion", "9.8.30.3\0"

        END

    END

    BLOCK "VarFileInfo"

    BEGIN

        VALUE "Translation", 0x409, 1200

    END

END

#endif    // English (U.S.) resources

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

 

 

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.  This requires 2 actions, one with commas between numbers and one with periods between numbers.

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

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

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

The .rc file is in versioninfo.zip.  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.  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 (8.708 KB)VersionInfo.zip (790 B)VersionInfo__-_After_Win32_VersionInfoUpdate.zip (829 B)

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.

Please try this build : https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_549.exe

It looks like that’s fixed it. Thanks!