# AbstractInstallOrUninstallAction

Import: `import com.install4j.api.actions.AbstractInstallOrUninstallAction;`

```java
public abstract class AbstractInstallOrUninstallAction extends AbstractBean implements InstallAction, UninstallAction
```

Abstract base class for actions that can be used for installation or uninstallation.
The `rollback` method does nothing by default. Override it in your action to perform an actual rollback.

## Inherited from

- [AbstractBean](../beans/AbstractBean.md) — 22 methods
- [InstallAction](InstallAction.md) — 3 methods
- [UninstallAction](UninstallAction.md) — 1 methods
- [Action](Action.md) — 1 methods

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`rollback(InstallerContext)`](#rollback-installercontext) | `void` |  |
| [`init(Context)`](#init-context) | `void` |  |
| [`isRollbackSupported()`](#isrollbacksupported) | `boolean` |  |

### rollback(InstallerContext)

```java
public void rollback(InstallerContext context)
```

### init(Context)

```java
public void init(Context context)
```

### isRollbackSupported()

```java
public boolean isRollbackSupported()
```

## Constructors

| Signature | Description |
|---|---|
| [`AbstractInstallOrUninstallAction()`](#abstractinstalloruninstallaction) |  |

### AbstractInstallOrUninstallAction()

```java
public AbstractInstallOrUninstallAction()
```

