Installation Guide

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Running the Installation in the Silent Mode

The following sections describe how to run the installation program in silent mode:

 


What Is Silent-Mode Installation?

Silent-mode installation is a way of setting installation configurations once and then using these configurations to duplicate the installation on many machines. During installation in silent mode, the installation program reads the settings for your configuration from an XML file that you create prior to beginning the installation. The installation program does not display any configuration options during the installation process. Silent-mode installation works on both Windows and UNIX systems.

It is assumed that you have already acquired the installation program, either on DVD or from the BEA Web site. For more information on different modes of product distribution, see Product Distribution Methods.

 


Using Silent-Mode Installation

The silent-mode installation process has two primary steps:

  1. Creating a silent.xml file that defines the configuration settings normally entered by a user during an interactive installation process, such as graphical-mode or console-mode installation. For example, values for the BEA Home directory, the product directory, and the components to be installed are supplied in a silent.xml file.
  2. For a detailed procedure, see Creating a silent.xml File for Silent-Mode Installation. For a sample silent.xml file, see Sample silent.xml File for Silent-Mode Installation.

  3. Starting the silent-mode installation process using the values specified in the silent.xml file. For more information on starting an installation, see Starting the Installation Program.

Important Considerations for Silent-Mode Installation

When you are performing an installation in silent mode, keep in mind the following considerations:

 


Creating a 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. Therefore, before you can run the installation program in silent mode, you must first create a silent.xml file in which you specify the installation options that you want to invoke.

Incorrect entries in the silent.xml file can cause installation to fail. To help you determine the cause of a failure, BEA recommends that you create a log file when you start the installation.

To create a silent.xml file for use in the silent-mode installation process, follow these steps:

  1. In a supported browser, view the sample silent.xml file for silent-mode installation. The sample file is available at http://download.oracle.com/docs/cd/E13179_01/common/docs92/install/scripts/silent.xml
  2. This sample silent.xml file is also presented in this section. See Sample silent.xml File for Silent-Mode Installation.

  3. Save the sample XML file, with the name silent.xml, in the same directory that contains the installation program.
  4. Note: The XML definition (<?xml version="1.0" encoding="ISO-8859-1"?>) must be at the very beginning of the silent.xml file. There should not be any spaces or line breaks before the XML definition.
  5. In the silent.xml file that you saved on your system, edit the values for the keywords shown in Table 5-1 to reflect your configuration.
  6. Note: You must follow XML guidelines for characters when modifying values. That is, do not use characters reserved for use in XML, such as <, >, [, and].

    Table 5-1 Parameters for Silent.xml
    For this data-value name...
    Enter the following value...
    BEAHOME
    The full path for the BEA Home directory of your choice. For details about the BEA Home directory, see Choosing a BEA Home Directory.
    USER_INSTALL_DIR
    The full path for the directory where you want to install your WebLogic Server product directory. For details, see Choosing Product Installation Directory.
    WLW_INSTALL_DIR
    The full path for the directory where you want to install your workshop for WebLogic Platform product directory. For details, see Choosing Product Installation Directory.
    INSTALL_NODE_MANAGER_SERVICE
    (Windows platforms only)
    Notes:  
    • You must have Administrator privileges to install Node Manager as a Windows service.
    • When you are installing AquaLogic Service Bus on UNIX based platforms, this parameter is ignored.
    NODEMGR_PORT
    The Node Manager listen port.
    If you do not specify a port number, the installer uses the default port 5556.
    If the port number is in use, the installer scans for the next available port and assigns it to the Node Manager.

    Note: The INSTALL_NODE_MANAGER_SERVICE option must be set to yes.

    At the completion of the installation process, the Node Manager is started using the port specified.
    INSTALL_MERCURY_PROFILING_TOOLS
    • true, or yes, to install the Mercury profiling tools. The default is true.
    • false, or no, to skip the installation of the tools.
    For more information about the Mercury profiling tools, see BEA JRockit JDK.
    INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER
    • true, or yes, to create the shortcuts in the All Users folder. The default is true.
    • false, or no, to create the shortcuts in the local users folder.
    The user performing the installation must have Administrator privileges to install the Start menu shortcuts in the All Users folder. For more information, see Administrator Privileges.
    COMPONENT_PATHS
    Specify the components and subcomponents you want to install on your system:
    • To install WebLogic Server, use the following values:
        WebLogic Server
         Server
         Server Examples
         Web Server Plug-Ins

    Note: The Web Server Plug-Ins subcomponent is not installed by default with WebLogic Server. You must specify the component/subcomponent combination to install them.

    • To install AquaLogic Service Bus, use the following values:
        AquaLogic Service Bus
         Service Bus Server
         Data Transformation Tools
         Service Bus Examples
    • To install Workshop for WebLogic Platform, use the following values:
        Workshop for WebLogic Platform
         Workshop
         Workshop Examples

    For more information about entering these values, see Guidelines for Component Selection.

Guidelines for Component Selection

Use the following guidelines when you specify values for the COMPONENT_PATHS data-value name:

 


Sample silent.xml File for Silent-Mode Installation

Listing 5-1 Sample XML File
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Silent installer option: -mode=silent -silent_xml=C:\bea\silent.xml -->
<!-- Specify values for each data-value name as follows: 
     BEAHOME  Complete pathname to the BEA Home directory that will contain 
this installation.
     USER_INSTALL_DIR   Complete pathname to the product installation 
directory in which to install the software.
     INSTALL_MERCURY_PROFILING_TOOLS 
                        Optionally install Mercury profiling tools. 
Possible values are "true","yes","false"
and "no". The default is "true".
     INSTALL_NODE_MANAGER_SERVICE  Install Node Manager as a Windows 
service. The default is "no".
Requires Administrator privileges.
     NODEMGR_PORT  Node Manager listen port number. If none specified,
installer uses default port 5556.
INSTALL_NODE_MANAGER_SERVICE must be set to "yes"
      COMPONENT_PATHS   Components and subcomponents to be installed. 
To install multiple components, separate the
components with a bar (|). To install subcomponents,
specify a component/subcomponent combination.
For example, to install Web Server Plug-Ins, use
"WebLogic Server/Web Server Plug-Ins".
      INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER
                     The Windows Start menu folder in which you want the 
Start menu shortcuts created. The user performing the
installation must have Administrator privileges to
install the shortcuts in the All Users folder. Possible
values: true/yes The shortcuts are created in the All
Users folder (default) false/no. The shortcuts are
created in the local user's folder. See the Installation
Guide for more information.
--> 
<bea-installer> 
  <input-fields>
      <data-value name="BEAHOME" value="C:\bea" />
<data-value name="USER_INSTALL_DIR" value="C:\bea\weblogic92" />
<data-value name=”WLW_INSTALL_DIR”  value=”c:\bea\workshop92” />
      <data-value name="INSTALL_MERCURY_PROFILING_TOOLS" value="true"/>
      <data-value name="INSTALL_NODE_MANAGER_SERVICE" value="yes"  />
      <data-value name="NODEMGR_PORT" value="5559" />
<data-value name="COMPONENT_PATHS" value="WebLogic Server/Server|WebLogic Server/Server Examples|WebLogic Server/Web Server Plug-Ins|Workshop for Weblogic Platform /Workshop|Workshop for Weblogic Platform/Workshop Examples|AquaLogic Service Bus/Service Bus Server|AquaLogic Service Bus/ Data Transformation Tools|AquaLogic Service Bus/ Service Bus Examples" />
<data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER"   value="yes"/>
	</input-fields> 
</bea-installer>

For more information on launching the installation in silent mode, see Starting the Installation Program.

 


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.

Code
Description
0
Installation Completed Successfully.
1
Installation failed due to a fatal error.
2
Installation failed due to an internal XML parsing error.

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-2 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-2 Sample Command File Displaying Silent-Mode Exit Codes

rem Execute the installer in silent mode

@echo off

alsb260_wls921_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%

@echo.

@echo Exit Code Key

@echo ---------------

@echo 0=Installation completed successfully

@echo -1=Installation failed due to a fatal error

@echo -2=Installation failed due to an internal XML parsing error

@echo.

 


What’s Next?

BEA recommends that you run the QuickStart application to familiarize yourself with the software and execute the samples provided. For additional information, see Post-Installation Information.

Note: QuickStart is not invoked automatically for console-mode or silent-mode installations. You can launch QuickStart from the Start Menu (Windows), or from the command line (Windows and UNIX). For instructions, see Using QuickStart.

For specific information about your software release, see the appropriate release notes:


  Back to Top       Previous  Next