Version-Checking Functions

InstallShield 2024 » InstallScript Language Reference

The following functions enable you to access version information that is present on Windows-based systems. In order to use the functions, you need to know background information about version resources. Review Microsoft Windows documentation to gain a better understanding of the version resource.

Version-Checking Functions

Function

Description

VerCompare

Compares two strings containing version information.

VerFindFileVersion

Searches for the specified file and retrieves its version and location.

VerGetFileLanguages

Retrieves the list of languages that a specified file supports.

VerGetFileVersion

Retrieves the version of a specified file.

VerProductCompareVersions

Compares product versions.

VerProductGetInstalledVersion

Returns the string equivalent of the data in the Version value of the application uninstallation registry key if that data is a packed DWORD.

VerProductIsVersionSupported

Checks whether a version string is a supported version.

VerProductNumToStr

Returns a string for a specified packed DWORD version.

VerProductStrToNum

Returns a packed DWORD version for a specified string.

VerProductVerFromVerParts

Retrieves the packed DWORD that corresponds to the version parts that are specified by nVersionMajor, nVersionMinor, and nVersionBuild.

VerProductVerPartsFromVer

Retrieves as separate numeric values the version parts of a specified packed DWORD.

VerSearchAndUpdateFile

Replaces an existing file with a more recent version. If the specified file does not exist, the more recent version is installed.

VerUpdateFile

Replaces an existing file with a more recent version. If the specified file does not exist, the more recent version is installed.