Use a silent installation

Use the silent installation to duplicate an installation from one computer to another without being prompted for information.

Procedure

  1. Ensure that your DISPLAY environment variable is unset.
  2. Either Use a response file template, or run the installation wizard from a command line with a parameter to save a response file.
    For example:

    Windows: analytics-installer-2.0.<build>-win.exe -DREPO=<RepoZipPath> -r “C:\ResponseFile\ResponseFile.properties”.

    UNIX or Linux: analytics-installer-<build>-<platform>.bin -DREPO=<RepoZipPath> -r “./ResponseFile/ResponseFile.properties”

    Note:
    • The directory, for example C:\ResponseFile, must exist before running the installation wizard.
    • <RepoZipPath> refers to the location of the repository.zip file. When upgrading Cognos® Analytics, ensure that the path points to the version of this file that is downloaded for the new version of the product.
    • Additional command line options can be found here: Command line options (https://helpnet.flexerasoftware.com/installanywhere2017/Content/helplibrary/ia_ref_command_line_install_uninstall.htm)

    You do not need to run a full install to create a response file. You can launch the install with the -r option and run it until the summary panel, then cancel out of the install. The response properties file will be created once the install exits.

  3. After the installation is completed, modify the response file as needed.

    The response file contains values that correspond to the values used when the install wizard was run to create the response file. The password entered during the installation is encrypted in the response file.

  4. On the computer where you plan to install the software, do one of the following:
    • Insert the appropriate product installation disk, and copy the contents of the disk to your computer.
    • Copy the product installation files you downloaded to your computer.
  5. In a command or terminal window, go to the operating system directory where you copied the installation files and type the following command:
    • On Windows, where location is the directory where you created or copied the response filename file:

      analytics-installer-2.0.<build>-win.exe -DREPO=<RepoZipPath> -f location\response_filename -i silent

      Tip:

      Launch the unattended install response file from a batch file. This makes the install process wait for the install to be completely finished before it returns. Also, add an %errorlevel% echo command at the end of your batch file to know the exit code of the install batch file entries. For example, install_location\analytics-installer-2.0.<build>-win.exe -DREPO=<RepoZipPath> -i silent -f location\response_filename echo %errorlevel%

      If an error occurs during the install, the install's command prompt window may quickly display some important information. The exit code displayed by should be 0 (zero) for success. If the exit code is not 0, there are two options.
      1. View the installation log located under install_location\logs\IBM_Cognos_Analytics_Install_<timestamp>.log
      2. View an additional output log under the user's temp folder %TEMPDIR%\install_output_log_cognos_analytics.txt. This log file displays a list of possible exit codes and their descriptions. You can also search for the phrase Install Error: for additional details.
    • On UNIX or Linux®:

      analytics-installer-<build>-<platform>.bin -DREPO=<RepoZipPath> -f location/response_filename -i silent

    • To install in a supported language, use the -l <lang_code> option.

      For example, to install in french and create a response file:

      Windows: analytics-installer-2.0.<build>-win.exe -DREPO=<RepoZipPath> -l <lang_code> –r location\response_filename.

      UNIX or Linux: analytics-installer-<build>-<platform>.bin -DREPO=<RepoZipPath> -l <lang_code> –r location/response_filename

      To use the response file and install in French, for example in Windows:

      analytics-installer-2.0.<build>-win.exe -DREPO=<RepoZipPath> -l fr -i silent -f c:\responselocation\responsefile.properties echo %errorlevel%

      Table 1. Supported language codes
      Code Language
      en English
      es Spanish
      fr French
      it Italian
      ja Japanese
      ko Korean
      pt_BR Portuguese Brazilian
      zh_CN Chinese simplified
      zh_TW Chinese traditional

Results

If a return status other than zero (0) is returned, check the log files for error messages. Errors are recorded in the install_location\logs directory in a summary error log file. The filename format is tl-product_code-version-yyyymmdd-hhmm_summary-error.txt.

If errors occur before sufficient initialization occurs, log messages are sent to a log file in the Temp directory. The filename format is tl-product_code-version-yyyymmdd-hhmm.txt.

After all errors are resolved, you can set up an silent configuration.