MSI.GetFileVersion

table MSI.GetFileVersion ( 

string FilePath )

Description

Calls the MsiGetFileVersion function to get the version and language strings in the format that the installer expects to find them in the database. This action is used to read version resource information from PE files (.exe, dll).

Note: This action will not work on Windows Installer files (.msi).

Parameters

FilePath

(string) The full path to the file whose version/language information you want.

Returns

(table) Returns a table indexed by the following values:

KEY

TYPE

DESCRIPTION

Version

string

The file version.

Language

string

The file language.

If the action fails, nil is returned. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions