Installing WebLogic RFID Edge Server

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

Running the Installation Program in 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 only once and then using those 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 Linux systems. Using silent-mode installation implies that you consent to the BEA License Agreement. You neither see a copy of the BEA Software License Agreement nor have any means of accepting the terms of the agreement.

The instructions in this section are based on the assumption that you have already acquired the installation program, either on CD or from the BEA Web site. For more information, see Product Distribution Methods.

 


Using Silent-Mode Installation: Main Steps

The silent-mode installation process has two primary steps:

  1. Create 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. Start the silent-mode installation process using the values specified in the silent.xml file.
  4. For details on starting the installation in silent mode, 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 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 have invoked.

Note: Incorrect entries in the silent.xml file can cause installation failures. To help you determine the cause of a failure, we recommend 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, display the sample silent.xml file for silent-mode installation. The sample file is available later in this chapter. See Sample silent.xml File for Silent-Mode Installation.
  2. Save the sample XML file, with the name silent.xml, in the same directory that contains the installation program.
  3. Note: The XML definition (<?xml version="1.0" encoding="UTF-8"?>) must be at the very beginning of the silent.xml file. There cannot be any spaces or line breaks before the XML definition.
  4. In the silent.xml file that you saved on your system, edit the values for the keywords shown in Table 6-1 to reflect your configuration.
  5. Note: You must follow XML guidelines for characters when modifying values. That is, you cannot use characters reserved for use in XML, such as <, >, [, and ].

    Table 6-1 Values for the silent.xml File 
    For this data-value name . . .
    Enter the following value . . .
    BEAHOME
    The full pathname 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 pathname for the directory where you want to install your WebLogic RFID software. For details, see Choosing a Product Installation Directory .
    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 (Windows).
    RFID_EDGE_UPGRACDE_FROM_PRIOR_RELEASE
    • true or yes to upgrade from a prior installation of the Edge Server.
    • false or no to install the new version of the Edge Server without preserving components from a previous installation.
    When you migrate a prior configuration (2.1 or later), you preserve previously configured components, such as readers, composite readers, workflows, and filters.

 


Sample silent.xml File for Silent-Mode Installation

<?xml version="1.0" encoding="UTF-8"?>
<!-- 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_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
	RFID_EDGE_UPGRADE_FROM_PRIOR_RELEASE
Specify if you want to migrate components from a
previous configuration of the Edge Server.

Possible values:
true/yes Migrate components from the previous
configuration.
false/no Do not migrate a previous configuration.
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\realtime10" />
<data-value name="INSTALL_SHORTCUT_IN_ALL_USERS_FOLDER" value="yes"/>
<data-value name="RFID_EDGE_UPGRADE_FROM_PRIOR_RELEASE" value="yes"/>

</input-fields>
</bea-installer>

 


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.

Table 6-2 Exit Codes
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 6-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 6-1 Sample Command File Displaying Silent-Mode Exit Codes
rem Execute the installer in silent mode
@echo off
realtime100_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?

By default, WebLogic RFID Edge Server uses the evaluation license file installed in the BEA Home directory so that you can start using the product immediately. For information on obtaining and installing a production license, see Installing and Updating License Files.

For additional post-installation information, see Post-Installation Information.


  Back to Top       Previous  Next