This folder contains:


Custom Code Rule: HostInfo

Classname: com.zerog.ia.customcode.actions.HostInfo

Description: This set two InstallAnywhere variables, one with the target system’s hostname, and one with the target system IP address.

Input InstallAnywhere Variables:

none

Output InstallAnywhere Variables: 

$LOCAL_HOST$:  This variable contains the target system’s hostname.

$IP$:  This variable contains the target system’s IP address.

General Instructions:

This README explains how to set up and take advantage of the HostInfo custom code action.

For IA 5.5.1 and earlier versions of IA:

To effectively use this action, you will want to add an "Execute Custom Code" action to anywhere in the IA Advanced designer.  Remember that for the action to work correctly you need to add a "Set InstallAnywhere Variable" action before the "Execute Custom Code" action to set the appropriate Input InstallAnywhere Variables.

Once you have added an "Execute Custom Code" action to your project, you will need to select the JAR or ZIP file that contains the desired action. To select the JAR or ZIP file, click on the "Choose JAR or ZIP..." button and select the HostInfo.jar file in the "Choose Code Archive" dialog the appears.

Next you have to designate the "Class:" that is to be called for the custom code. In this case, you would enter 
"com.zerog.ia.customcode.actions.HostInfo" (no quotes).

For IA 6.0:

To effectively use this action, you will want to add HostInfo.jar in [InstallAnywhere Folder]\plugins . Then, add the action located in the plugins tab to InstallAnywhere in the IA Advanced designer.

Please see the user guide for more information on adding additional properties to the customcode.properties file found in HostInfo.jar.

Thank you,

Zero G Developer Technical Services.


26 November 2003