VerProductStrToNum

InstallShield 2024 » InstallScript Language Reference

Project: This information applies to InstallScript projects.

The VerProductStrToNum function returns in nvVersionResult the packed DWORD version information corresponding to the string specified in svVersion.

Syntax

VerProductStrToNum ( nvVersionResult, szVersion );

Parameters

VerProductStrToNum Parameters

Parameter

Description

nvVersionResult

Returns the packed DWORD version information.

szVersion

Specifies version information in string form. The function fails unless szVersion meets all of the following conditions:

szVersion is in the format major.minor.build or major.minor.build.release (release is ignored when determining nvVersionResult).
major and minor are the string equivalents of numbers in the range 0 to 255.
build is the string equivalent of a number in the range 0 to 65535.

Return Values

VerProductStrToNum Return Values

Return Value

Description

>= ISERR_SUCCESS

The function succeeded.

< ISERR_SUCCESS

The function failed.