GetCurrentDir

InstallShield 2020 ยป InstallScript Language Reference

The GetCurrentDir function returns the current directory.

Note:When you are specifying a file in your script, always specify the full path (using the appropriate InstallShield system variable, for example, SRCDIR) rather than depend on the current folder having the appropriate value. The script internally executes code that can change the current folder, so its value may not be what you expect.

Syntax

GetCurrentDir( svCurrentDir );

Parameters

GetCurrentDir Parameters

Parameter

Description

svCurrentDir

Returns the current directory.

Return Values

GetCurrentDir Return Values

Return Value

Description

>= ISERR_SUCCESS

Indicates that the function successfully retrieved the current directory.

< ISERR_SUCCESS

Indicates that the function was unable to retrieve the current directory.

See Also