Package com.install4j.api.actions
Interface UninstallAction
- All Superinterfaces:
Action,Bean,Serializable
- All Known Subinterfaces:
AutoUninstallAction
- All Known Implementing Classes:
AbstractInstallOrUninstallAction,AbstractUninstallAction
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 superclass.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanuninstall(UninstallerContext context) This method is called by the framework to perform the action during uninstallation.
-
Method Details
-
uninstall
This method is called by the framework to perform the action during uninstallation. You can use theProgressInterfaceavailable fromcontext.getProgressInterface()in order to display messages to the user or ask simple questions.- Parameters:
context- the context of the uninstallation.- Returns:
- should return
trueif 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.
-