Silent File Editor

Use the Silent File Editor to modify variables in a silent file. It can be used from the command line or the GUI.

The most common values that you replace when preparing a new installation using a silent file are the InstallDir and CommonDir variables. The value of these fields is used to concatenate other paths in the products silent file properties file.

Location

The Silent File Editor is in the installation directory in Tools/SilentFileEditor.

Note   It is not supported to copy the Silent File Editor from the installation package because it uses binary files from the Installer.

Modifying a silent file using the command line

To modify a silent file using the command line, run:

  • In Windows: SilentFileEditor.bat
  • In UNIX: SilentFileEditor.sh

The parameters for the Silent File Editor are:

  • The path to the silent file that you want to modify
  • Three arguments in this format:
    • The first argument is the name of the variable that you want to modify (for example, DB_ADMIN_PASSWORD). Each variable name given must exist in the silent file.
    • The second argument is the value that you want to assign to the variable given as the first argument.
    • The third argument is -c if the value is to be encrypted first and then saved in the silent file, or -u if the value does not need to be encrypted.

You can have more than one group of arguments as shown in the examples below.

Example

SilentFileEditor.bat SilentFilePath varName1 value1 -c/-u varName2 value2 -c/-u … varNameN valueN -c/-u

Windows example

SilentFileEditor.bat

C:\<install directory>\SilentFile\Install_Composer_V3.6.0.properties DB_ADMIN_PASSWORD composer -c InstallDir C:\<install directory> -u

UNIX example

./SilentFileEditor.sh

/<install directory>/SilentFile/Install_Composer_V3.6.0.properties ServerHost item-51923 -u Common new value 1 -c DB_SCRIPTS new value COPY_LAUNCH -u

Modifying a Silent File using the user interface

Starting the GUI

To start the Silent File Editor GUI, run SilentFileEditorGUI.bat or SilentFileEditorGUI.sh at <installation directory>\Tools\SilentFileEditor.

Using the GUI

The GUI displays the list of variables and values in the silent file.

Use File > Open to open the silent file you want to edit.

From the Tools menu you can:

  • Encrypt Selected - Encrypts the Values selected with the AES128 algorithm
  • Undo Selected - Undoes the changes made on the current selection
  • Undo all changes - Undoes all changes made on the current selection
  • Replace - Finds a variable and replaces it with the value you select. Inside of the Replace command there are other options:
    • Replace all - Replaces all paths in all the variable values
    • Find next - Goes to the next value occurrence and if you click Replace it replaces the value
    • Encrypt - Encrypts the value in the Replace Value with field

Once you have completed all the modifications, use File > Save to save the silent file, then File > Exit to quit the Silent File Editor UI.

Related Links