# UninstallerContext

Import: `import com.install4j.api.context.UninstallerContext;`

```java
interface UninstallerContext extends Context
```

The context provided by the uninstaller.
In addition to the methods in the `Context` interface, this extended context offers methods that are specific
to the uninstaller.

## Inherited from

- [Context](Context.md) — 75 methods

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`isUninstallForUpgrade()`](#isuninstallforupgrade) | `boolean` | Returns whether the uninstaller is running as part of an upgrade. |

### isUninstallForUpgrade()

```java
boolean isUninstallForUpgrade()
```

Returns whether the uninstaller is running as part of an upgrade.
This method returns `true` when the uninstaller is run by the "Execute previous uninstaller" action of
another installer performing an upgrade into the same directory.


**Returns:** `true` or `false`.

