GetEnvVar

InstallShield 2018 ยป InstallScript Language Reference

The GetEnvVar function retrieves the current value of an environment variable.

Syntax

GetEnvVar ( szParameter, svValue );

Parameters

GetEnvVar Parameters

Parameter

Description

szParameter

Specifies the name of the environment variable whose value is to be retrieved.

svValue

Returns the current value of the environment variable.

Return Values

GetEnvVar Return Values

Return Value

Description

0

Indicates that the function retrieved the value of the environment variable.

< 0

Indicates that the function was unable to retrieve the value of the environment variable.

See Also