Inno Setup Preprocessor: GetFileVersionString

Prototype

str GetFileVersionString(str FileName)

Description

Returns the file version string from the specified file's version information resource. Equivalent to calling GetStringFileInfo(FileName, FILE_VERSION).

Also see GetVersionNumbersString, which can also be used to retrieve the file version. The difference is that GetVersionNumbersString gets the binary file version from the fixed block of the specified file's version information resource, while GetFileVersionString gets the textual file version from the language specific block.

The function returns null (void) if it was unable to retrieve the value.

Declared in ISPPBuiltins.iss.

See also

GetStringFileInfo