PathSet

InstallShield 2019 ยป InstallScript Language Reference

The PathSet function stores a search path string in the path buffer. You can then manipulate this buffer using the other path functions. The value of szString should be an absolute path (a path that includes a drive specification, for example, "C:\\Program Files\\AppName").

This function has no relation 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. You can then add this temporary path string to the Autoexec.bat file or PATH environment variable.

Syntax

PathSet ( szString );

Parameters

PathSet Parameters

Parameter

Description

szString

Specifies a search path to store in the path buffer. The search path should be fully qualified; that is it should include a drive designation and the complete path to a directory.

Return Values

PathSet Return Values

Return Value

Description

0

Indicates that the function successfully stored a search path string in the path buffer.

< 0

Indicates that the function was unable to store a search path string in the path buffer.

See Also