Use a silent installation
Use the silent installation to duplicate an installation from one computer to another without being prompted for information.
Procedure
- Ensure that your DISPLAY environment variable is unset.
-
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-3.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.
-
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.
- 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.
-
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-3.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-3.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.- View the installation log located under
install_location\logs\IBM_Cognos_Analytics_Install_<timestamp>.log
- 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.
- View the installation log located under
- 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-3.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-3.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 -
Windows
PowerShell:
When passing Java properties to the installer with the -D option in Windows PowerShell, you must enclose the -D option and the Java properties within quotation marks ("). You must also enclose other options and arguments within quotation marks:
For example, to generate a silent response file:
analytics-installer-3.0.<build>-win.exe "-DREPO=<RepoZipPath>" "-r" "C:\ResponseFile\ResponseFile.properties"
To perform a silent installation:
analytics-installer-3.0.<build>-win.exe "-DREPO=<RepoZipPath>" "-f" "location\response_filename" "-i" "silent"
If you specify the -D option at the end of the command, you do not have to enclose the other options and arguments within quotation marks.
For example, to generate a silent response file with the -D option at the end:
analytics-installer-3.0.<build>-win.exe -r “C:\ResponseFile\ResponseFile.properties" "-DREPO=<RepoZipPath>"
To perform a silent installation with the -D option at the end:
analytics-installer-3.0.<build>-win.exe -f "location\response_filename" -i silent "-DREPO=<RepoZipPath>"
- On Windows, where
location is the directory where you created or copied the
response filename file:
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.