Package com.install4j.api.actions
Interface UninstallAction
-
- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
uninstall(UninstallerContext context)
This method is called by the framework to perform the action during uninstallation.
-
-
-
Method Detail
-
uninstall
boolean uninstall(UninstallerContext context) throws UserCanceledException
This method is called by the framework to perform the action during uninstallation. You can use theProgressInterface
available fromcontext.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 returnsfalse
, 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.
-
-