$LOCATEDIR$

$LOCATEDIR$ is assigned a value with the LOCATE function. LOCATE searches the user's system for a particular file, and $LOCATEDIR$ is assigned the value of the directory path in which the file was located. This value includes both the disk drive and the directory path. Refer to the LOCATE command for more information.

Common uses include:

  • Setting the installation directory to the directory in which a previous version of the software is found. For example, if you are upgrading and you want to install in the directory in which the user installed the last version of the software.
  • Installing a file in another application's directory. For example, you supply a script file for a database program and you want this script to reside in the database program's directory rather than the directory in which your software is being installed.