Duplicate version info resource block

ID PE032 Level CRITICAL Category Format

Description

The VERSIONINFO resource block is present more than once in the VERSIONINFO resource. Each block (StringFileInfo and VarFileInfo) must occur only once.

Windows Explorer and other file version info viewers may not be able to show the version information correctly.

Mitigation

If using Visual C++:

  • Follow the Microsoft guides to add the correct VERSIONINFO resource.
  • You can use this Microsoft example and reference for the correct VERSIONINFO resource.
  • If you are adding several languages to the version info, make sure to add them to the single existing StringFileInfo and VarFileInfo blocks.

Arguments

This rule has the following output arguments:

  • resource_lang - Affected VERSIONINFO resource language integral code
  • resource_lang_tag - Affected VERSIONINFO resource language tag (e.g. en, nl-NL or en-US)
  • resource_lang_location - Affected VERSIONINFO resource language location (e.g. Spain, neutral or process_default)
  • block - Affected block type (either StringFileInfo or VarFileInfo)