Installation guide

Sample silent.xml file for Silent-Mode Installation
BEA Products Installation Guide 5-7
Sample silent.xml file for Silent-Mode Installation
When you install your BEA software in silent mode, the installation program uses an XML file
(
silent.xml) to determine which installation options should be implemented. For details about
creating the silent.xml file, see “Creating a silent.xml File for Silent-Mode Installation” on
page 5-3. The sample file is available at
http://e-docs.bea.com/common/docs92/install/scripts/silent.xml.
Returning Exit Codes to the Console
When run in silent mode, the installation program generates exit codes that indicate the success
or failure of the installation. These exit codes are shown in the following table.
If you are launching the silent-mode installation process from a script, you can choose to have
these exit codes displayed on the console. Listing 5-1 provides a sample command file that
invokes the installation program in silent mode and echoes the exit codes to the console from
which the script is executed.
Listing 5-1 Sample Command File Displaying Silent-Mode Exit Codes
rem Execute the installer in silent mode
@echo off
platform920_win32.exe -mode=silent -silent_xml=C:\downloads\silent.xml
-log=C:\logs\products_silent.log
@rem Return an exit code to indicate success or failure of installation
set exit_code=%ERRORLEVEL%
@echo.
@echo Exitcode=%exit_code%
Code Description
0 Installation completed successfully
-1 Installation failed due to a fatal error
-2 Installation failed due to an internal XML parsing error