|
Running connect installer in Silent ModePlanetPress Connect can be installed in a so called "silent mode" to allow an automated setup during a company wide roll-out or comparable situations. The trigger for the Connect Installer to run in silent mode is a text file with the fixed name install.properties, which is located either in the same folder as the PlanetPress_Connect_Setup_x86_64.exe or in the unpacked folder of the installer.exe. Only the installation can be run silently. Silent Mode does not apply to uninstalling, modifying, or updating Connect. Any previous version of Connect must be uninstalled before using the Silent Installer.
The required properties file has the following attributes:
For supported keys, please refer to the next paragraph. install.properties file notation must follow commons configuration rules. Please refer to Properties files for more details.
Required and optional propertiesRequired properties depend on the specified product. Only fields related to that specified product must be entered. If no product is mentioned, properties must be specified for all valid Connect products. Here is an example of an install.properties file.
Verbose logging (optional)By default, the Silent Installer will log the same way as the GUI installer. That means logging of error and warnings, and certain information during database configuration. A more verbose logging can be switched on by using logging.verbose = true. Product selection (optional)By default, if nothing is entered for the products to be installed (install.product.X), Silent Installer will install all products which are visible to the user for the respective brand (except for the Server Extension, because only Server or Server Extension can be installed at the same time). PlanetPress defaults
The values of install.product properties must contain the exact product names.
Server configuration (required if Server is selected for install)For Server, the following properties need to be provided:
Server Extension configuration (required if Server Extension is selected for install)For Server Extension, the following properties need to be provided:
Database configurationCase 1: MySQL is among the selected Connect products to be installed (new MySQL installation)If MySQL is selected and there is no previous MySQL configuration on the machine, the following properties should be defined:
The unlocked option should only be used when the database requires an external access.
If the Silent Installer runs with the default product selection, MySQL Product is included, and hence the database.unlocked = true property may be optionally set if MySQL on this machine is intended to serve as the central database also for remote machines. If the Silent Installer runs with the explicit installation of a stand-alone (install.product.0 = Connect Server), the database.unlocked property is irrelevant. The port will be defined automatically for the MySQL installation. All connect products selected in the Silent Installer will automatically be configured to use the MySQL running under the port defined by the database.port property, regardless of the default port 3306 or any other user defined port.
A different port is required if 3306 is already taken on that machine by another application. Case 2: The Connect Server is selected and the MySQL Product is not selectedIn this case, an external database must be configured for the Server (and other Connect products included in the Silent installation) to be used. 2a: Configuring an external MySQL databaseTo configure an external MySQL database, the following properties should be defined: database.type = mysql (required) 2b: Configuring an external Microsoft SQL Server databaseSince PlanetPress Connect version 1.6 the minimum required version of the MS SQL Server is SQL Server 2012. To configure an external Microsoft SQL Server database, the following properties should be defined: database.type = Microsoft SQL Server (required) Repository selectionThe Connect installation process requires a repository from which the installer copies (locally) or downloads (online installation) all selected Connect products. In Silent Installer mode, the installation process looks for the property product.repository in the install.properties file and then proceeds with the following steps:
Examplesproduct.repository = http://192.168.79.73/Connect/Version_01/repository Locale definitionIt is possible to define the Locale which affects the installation language and installed locale for Connect products by using the following properties in the install.properties file: user.language Locales supported by ConnectThe Connect Setup supports a dedicated list of Locales, which is saved in the preinstall.ini file. Each entry consists of a language tag and a country tag, formatted by the pattern: <language>-<country> The current list of supported Locales is found below, but it may be enhanced in future releases:
Locale selection by defining user.language and user.countryIf both user.language and user.country are defined in the install.properties file, the combination must match exactly one of the supported locales, otherwise the Installer will exit with an error. For example, user.language = fr and user.country = CA will cause an error since fr-CA is not in the list of supported Locales. Locale selection by defining only user.languageIf only user.language is defined in the install.properties file, the Installer will attempt to find a Locale in the list which starts with the given language code. The first match is selected for installation. If no match is found, the Installer will exit with an error. For example:user.language = zh, will result in an installation with the Locale zh-CN user.language = no, will result in an error Default Locale selectionIf neither user.language nor user.country is defined in the install.properties file, the Installer will select a default Locale:
Getting the exit code of a silent installationIf getting the exit code of a silent installation is desirable, use the following procedure.
Exit codes0 = Success 1 = General Error in preinstall (e.g. not supported settings for user.language / user.country, for reason see preinstall_err.log) 2 = Unknown Error in preinstall 10 = General Error in Installer application (for reason see OL_Install_<timestamp>.log) Sample batch file
|
|