VerProductVerFromVerParts

InstallShield 2024 » InstallScript Language Reference

Project: This information applies to InstallScript projects.

The VerProductVerFromVerParts function retrieves the packed DWORD that corresponds to the version parts specified by nVersionMajor, nVersionMinor, and nVersionBuild.

Syntax

VerProductVerFromVerParts ( nvVersion, nVersionMajor, nVersionMinor, nVersionBuild );

Parameters

VerProductVerFromVerParts Parameters

Parameter

Description

nvVersion

Returns the four-byte value that corresponds to the version parts specified by nVersionMajor, nVersionMinor, and nVersionBuild.

nVersionMajor

Specifies the first byte of version information. VerProductVerFromVerParts fails if this value is less than zero (0) or greater than 255.

nVersionMinor

Specifies the second byte of version information. VerProductVerFromVerParts fails if this value is less than zero (0) or greater than 255.

nVersionBuild

Specifies the last two bytes of version information. VerProductVerFromVerParts fails if this value is less than zero (0) or greater than 65535.

Return Values

VerProductVerFromVerParts Return Values

Return Value

Description

>= ISERR_SUCCESS

Indicates that the function succeeded.

< ISERR_SUCCESS

Indicates that the function failed.