com.izforge.izpack.installer.data
Class UninstallDataWriter

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

public class UninstallDataWriter
extends Object

Writes uninstall data to an executable jar file.


Constructor Summary
UninstallDataWriter(UninstallData uninstallData, AutomatedInstallData installData, PathResolver pathResolver, RulesEngine rules)
          Constructs an UninstallDataWriter.
 
Method Summary
 boolean isUninstallRequired()
          Determines if uninstall data should be written.
 boolean write()
          Writes the uninstall data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UninstallDataWriter

public UninstallDataWriter(UninstallData uninstallData,
                           AutomatedInstallData installData,
                           PathResolver pathResolver,
                           RulesEngine rules)
Constructs an UninstallDataWriter.

Parameters:
uninstallData - the uninstall data
installData - the install data
pathResolver - the path resolver
rules - the rules engine
Method Detail

isUninstallRequired

public boolean isUninstallRequired()
Determines if uninstall data should be written.

Uninstall data should be written if Info.getUninstallerCondition() is empty, or evaluates true.

Returns:
true if uninstall data should be written, otherwise false

write

public boolean write()
Writes the uninstall data.

Returns:
true if uninstall data was successfully written, otherwise false


Copyright © 2018. All rights reserved.