com.izforge.izpack.installer
Class InstallerBase

java.lang.Object
  extended bycom.izforge.izpack.installer.InstallerBase
Direct Known Subclasses:
AutomatedInstaller, GUIInstaller

public class InstallerBase
extends java.lang.Object

Common utility functions for the GUI and text installers. (Do not import swing/awt classes to this class.)

Author:
Jonathan Halliday, Julien Ponge

Constructor Summary
InstallerBase()
           
 
Method Summary
private  java.lang.String buildWindowsDefaultPath()
          Builds the default path for Windows (i.e Program Files/...).
private  void loadCustomData(AutomatedInstallData installdata)
          Loads custom data like listener and lib references if exist and fills the installdata.
 void loadInstallData(AutomatedInstallData installdata)
          Loads the installation data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstallerBase

public InstallerBase()
Method Detail

loadInstallData

public void loadInstallData(AutomatedInstallData installdata)
                     throws java.lang.Exception
Loads the installation data. Also sets environment variables to installdata. All system properties are available as $SYSTEM_ where is the actual name _BUT_ with all separators replaced by '_'. Properties with null values are never stored. Example: $SYSTEM_java_version or $SYSTEM_os_name

Parameters:
installdata - Where to store the installation data.
Throws:
java.lang.Exception - Description of the Exception

buildWindowsDefaultPath

private java.lang.String buildWindowsDefaultPath()
Builds the default path for Windows (i.e Program Files/...).

Returns:
The Windows default installation path.

loadCustomData

private void loadCustomData(AutomatedInstallData installdata)
                     throws java.lang.Exception
Loads custom data like listener and lib references if exist and fills the installdata.

Parameters:
installdata - installdata into which the custom action data should be stored
Throws:
java.lang.Exception