14.3.1 Setting a TEMP directory for install4j

The installer (Windows or Linux/UNIX) requires a writable temp folder. If the default temp directory is not suitable, the installer can be run with an alternate temp directory.

Note: The installer must be run with administrative permissions.

  • Windows

    If the default temp directory is not writable, set the environment variables TMP or TEMP to an alternate location temporarily while running the installer.

    Restore the variables when the installation is complete.

  • Linux/UNIX

    The environment variable INSTALL4J_TEMP determines the base directory that the MSS installer uses for self-extraction. As the installer extracts files and launches Java to perform other tasks, the Java temp location ( /tmp) is used.

    To run the Linux installers with an alternate temp directory:

    1. Define the variable INSTALL4J_TEMP, specifying the value as the desired temp location.

    2. Create the temp directory specified for the installer. The installer requires a directory that already exists.

    3. Add the command line switch –J-Djava.io.tmpdir={tempdir} when launching the installer. For example:

      abcd@linux:~$ INSTALL4J_TEMP=/home/abcd/i4jtemp    
      abcd@linux:~$ export INSTALL4J_TEMP
      abcd@linux:~$ sudo ./mss- -J-Djava.io.tmpdir=/home/abcd/i4jtemp