com.izforge.izpack.installer.data
Class UninstallData

java.lang.Object
  extended by com.izforge.izpack.installer.data.UninstallData

public class UninstallData
extends Object

Holds uninstallation data.

Author:
Julien Ponge created October 27, 2002

Field Summary
static String ROOTSCRIPT
          Constant RootFiles = "rootfiles"
 
Constructor Summary
UninstallData()
          The constructor.
 
Method Summary
 void addAdditionalData(String name, Object value)
          Sets additional uninstall data.
 void addExecutable(ExecutableFile file)
          Adds an executable to the data.
 void addFile(String path, boolean uninstall)
          Adds a file to the data.
 void addJar(CustomData jar)
          Adds a reference to a jar to be copied to the uninstaller.
 void addNativeLibrary(String path)
          Adds a reference to a native library, to be copied to the uninstaller.
 void addUninstallerListener(CustomData listener)
          Adds an listener to invoke at uninstall.
 void addUninstallScript(String aRootUninstallScript)
          Adds the given File to delete several Shortcuts as Root for the given Users.
 Map<String,Object> getAdditionalData()
          Returns additional uninstall data.
 List<ExecutableFile> getExecutablesList()
          Returns the executables list.
 List<String> getInstalledFilesList()
          Returns the installed files list.
 List<CustomData> getJars()
          Returns the jars that must be merged to the uninstaller.
 List<String> getNativeLibraries()
          Returns the native library paths, to be copied to the uninstaller.
 List<String> getUninstalableFilesList()
          Returns the uninstallable files list.
 String getUninstallerJarFilename()
          Returns the uninstaller jar filename.
 List<CustomData> getUninstallerListeners()
          Returns the listeners to invoke at uninstall.
 String getUninstallerPath()
          Returns the path to the uninstaller.
 ArrayList<String> getUninstallScripts()
          Returns the root data.
 void setUninstallerJarFilename(String name)
          Sets the uninstaller jar filename.
 void setUninstallerPath(String path)
          Sets the uninstaller path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOTSCRIPT

public static final String ROOTSCRIPT
Constant RootFiles = "rootfiles"

See Also:
Constant Field Values
Constructor Detail

UninstallData

public UninstallData()
The constructor.

Method Detail

addFile

public void addFile(String path,
                    boolean uninstall)
Adds a file to the data.

Parameters:
path - The file to add.
uninstall - If true, file must be uninstalled.

getInstalledFilesList

public List<String> getInstalledFilesList()
Returns the installed files list.

Returns:
The installed files list.

getUninstalableFilesList

public List<String> getUninstalableFilesList()
Returns the uninstallable files list.

Returns:
The uninstallable files list.

addExecutable

public void addExecutable(ExecutableFile file)
Adds an executable to the data.

Parameters:
file - The executable file.

getExecutablesList

public List<ExecutableFile> getExecutablesList()
Returns the executables list.

Returns:
The executables list.

getUninstallerJarFilename

public String getUninstallerJarFilename()
Returns the uninstaller jar filename.

Returns:
The uninstaller jar filename.

setUninstallerJarFilename

public void setUninstallerJarFilename(String name)
Sets the uninstaller jar filename.

Parameters:
name - The uninstaller jar filename.

getUninstallerPath

public String getUninstallerPath()
Returns the path to the uninstaller.

Returns:
The uninstaller filename path.

setUninstallerPath

public void setUninstallerPath(String path)
Sets the uninstaller path.

Parameters:
path - The uninstaller path.

addUninstallerListener

public void addUninstallerListener(CustomData listener)
Adds an listener to invoke at uninstall.

Parameters:
listener - the listener

getUninstallerListeners

public List<CustomData> getUninstallerListeners()
Returns the listeners to invoke at uninstall.

Returns:
the listeners

addJar

public void addJar(CustomData jar)
Adds a reference to a jar to be copied to the uninstaller.

Parameters:
jar - the jar

getJars

public List<CustomData> getJars()
Returns the jars that must be merged to the uninstaller.

Returns:
the jar data

addNativeLibrary

public void addNativeLibrary(String path)
Adds a reference to a native library, to be copied to the uninstaller.

Parameters:
path - the native library resource path

getNativeLibraries

public List<String> getNativeLibraries()
Returns the native library paths, to be copied to the uninstaller.

Returns:
the native library resource paths

getAdditionalData

public Map<String,Object> getAdditionalData()
Returns additional uninstall data.

Returns:
additional uninstall data

addAdditionalData

public void addAdditionalData(String name,
                              Object value)
Sets additional uninstall data.

Parameters:
name - key for the additional uninstall data
value - the additional uninstall data

addUninstallScript

public void addUninstallScript(String aRootUninstallScript)
Adds the given File to delete several Shortcuts as Root for the given Users.

Parameters:
aRootUninstallScript - The Script to exec as Root at uninstall.

getUninstallScripts

public ArrayList<String> getUninstallScripts()
Returns the root data.

Returns:
root data


Copyright © 2018. All rights reserved.