PathDelete

InstallShield 2018 » InstallScript Language Reference

The PathDelete function deletes a specific directory in the path buffer. You can specify the name of the directory or enter a fully qualified path.

This function has no relationship to the path statement in the Autoexec.bat file or the path environment variable. It acts only on the path buffer, which helps you build, modify, and manipulate search paths.

Tip • Call PathGet to get the contents of the path buffer. Call PathSet to set contents of the path buffer.

Syntax

PathDelete ( szDir, bDir );

Parameters

PathDelete Parameters

Parameter

Description

szDir

Specifies the path to remove from the path buffer.

bDir

Specifies whether or not szRefDir is a fully qualified path. Pass one of the following predefined constants in this parameter:

FULL—szRefDir is a fully qualified path—it includes a drive designation and the complete path.
PARTIAL—szRefDir is the directory name only—without drive or path information.

Return Values

PathDelete Return Values

Return Value

Description

0

Indicates that the function successfully deleted a directory from the path buffer.

< 0

Indicates that the function was unable to delete a directory from the path buffer.

See Also