Interface UninstallAction

All Superinterfaces:
Action, Bean, Serializable
All Known Subinterfaces:
AutoUninstallAction
All Known Implementing Classes:
AbstractInstallOrUninstallAction, AbstractUninstallAction

public interface UninstallAction extends Action
All uninstall actions must implement this interface. You have to override all methods and provide a public constructor with no arguments. It is recommended that you choose one of the derived abstract classes as a super class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method is called by the framework to perform the action during uninstallation.

    Methods inherited from interface com.install4j.api.actions.Action

    init
  • Method Details

    • uninstall

      boolean uninstall(UninstallerContext context) throws UserCanceledException
      This method is called by the framework to perform the action during uninstallation. You can use the ProgressInterface available from context.getProgressInterface() in order to display messages to the user or ask simple questions.
      Parameters:
      context - the context of the uninstallation.
      Returns:
      should return true if successful. If it returns false, the error message and the failure strategy for the action configured in the install4j GUI will be used by the uninstaller.
      Throws:
      UserCanceledException - You can let these exceptions pass through, they will be handled by the framework.