Problem:
How to install the TIBCO JasperReports® Server through its installer without any user input. The configuration of installation should be defined in a separate file.
Solution:
You can use the unattended mode installation in this. While this is not an officially supported nor generally recommended method, you can still do that. The installer has an --optionfile filename.txt flag to point at an option file for selections during the installation. For example:
./jasperreports-server-6.2.1-linux-x64-installer.run --optionfile install.txt[/code]
The optionfile contents are the following:
mode=unattendedprefix=/some/prefixpostgres_installation_type=bundledpostgres_password=postgres_binary_directory=/location/of/postgresql/binpostgres_port=5432tomcat_server_directory=/location/of/apache-tomcattomcat_server_port=8080tomcat_server_shutdown_port=9005installer-language=enjasperserver_install_sampledata=0debugtrace=install.logdebuglevel=4[/code]
While this is a viable method, it still is not recommended. Using WAR file package and deployment scripts is the preferred way of automating installation process.
Recommended Comments