ExistsDir

InstallShield 2014 » InstallScript Language Reference

The ExistsDir function checks for the existence of a specified directory on the target system or the Internet.

Syntax

ExistsDir ( szPath );

Parameters

ExistsDir Parameters

Parameters

Description

szPath

Specifies the fully qualified path of the directory to find on the target system, or the valid Uniform Resource Locator (URL) of the directory to find on the Internet. To check the validity of a URL, call Is(VALID_PATH, szURL).

Return Values

ExistsDir Return Values

Return Value

Description

EXISTS (0)

Indicates that the specified directory exists.

NOTEXISTS (-1)

Indicates that the specified directory does not exist.

All other negative values

Indicates that the function was unable to determine whether the specified directory exists. You can obtain the error message text associated with a large negative return value—for example, -2147024891 (0x80070005)—by calling FormatMessage.

See Also