Skip to content

Instantly share code, notes, and snippets.

@wesinator
Last active December 24, 2021 12:29
Show Gist options
  • Save wesinator/b8a37859a9950ace104e502947eecc55 to your computer and use it in GitHub Desktop.
Save wesinator/b8a37859a9950ace104e502947eecc55 to your computer and use it in GitHub Desktop.

Windows PE resource metadata fields

Name Description
Comments Additional information that should be displayed for diagnostic purposes.
CompanyName Company that produced the file-for example, Microsoft Corporation or Standard Microsystems Corporation, Inc. This string is required.
FileDescription File description to be presented to users. This string may be displayed in a list box when the user is choosing files to install-for example, Keyboard Driver for AT-Style Keyboards. This string is required.
FileVersion Version number of the file-for example, 3.10 or 5.00.RC2. This string is required.
InternalName Internal name of the file, if one exists-for example, a module name if the file is a dynamic-link library. If the file has no internal name, this string should be the original filename, without extension. This string is required.
LegalCopyright Copyright notices that apply to the file. This should include the full text of all notices, legal symbols, copyright dates, and so on. This string is optional.
LegalTrademarks Trademarks and registered trademarks that apply to the file. This should include the full text of all notices, legal symbols, trademark numbers, and so on. This string is optional.
OriginalFilename Original name of the file, not including a path. This information enables an application to determine whether a file has been renamed by a user. The format of the name depends on the file system for which the file was created. This string is required.
PrivateBuild Information about a private version of the file-for example, Built by TESTER1 on \\TESTBED. This string should be present only if VS_FF_PRIVATEBUILD is specified in the fileflags parameter of the root block.
ProductName Name of the product with which the file is distributed. This string is required.
ProductVersion Version of the product with which the file is distributed-for example, 3.10 or 5.00.RC2. This string is required.
SpecialBuild Text that specifies how this version of the file differs from the standard version-for example, Private build for TESTER1 solving mouse problems on M250 and M250E computers. This string should be present only if VS_FF_SPECIALBUILD is specified in the fileflags parameter of the root block.

Sources

https://docs.microsoft.com/en-us/windows/win32/menurc/string-str#members

https://docs.microsoft.com/en-us/windows/win32/menurc/stringfileinfo-block#remarks

https://docs.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment