# ApplicationRegistry.ApplicationInfo

Import: `import com.install4j.api.ApplicationRegistry;`

```java
static interface ApplicationInfo
```

Provides information about an application installed by install4j.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getInstallationDirectory()`](#getinstallationdirectory) | `File` | Returns the directory the application was installed in the last time the installer ran. |
| [`getId()`](#getid) | `String` | Returns the application ID. |
| [`getName()`](#getname) | `String` | Returns the name of the application. |
| [`getVersion()`](#getversion) | `String` | Returns the version of the application. |
| [`getMediaSetId()`](#getmediasetid) | `String` | Returns the ID of the media file that was used to install this application. |
| [`getCompilerVariable(String)`](#getcompilervariable-string) | `String` | Get the value of a compiler variable in the application. |
| [`getInstallerVariable(String)`](#getinstallervariable-string) | `Object` | Get the value of an installer variable that was saved to the automatically created response file `response.varfile`. |

### getInstallationDirectory()

```java
File getInstallationDirectory()
```

Returns the directory the application was installed in the last time the installer ran.


**Returns:** the installation directory

### getId()

```java
String getId()
```

Returns the application ID.


**Returns:** the application id, `null` if the application was installed with install4j < 3.0

### getName()

```java
String getName()
```

Returns the name of the application.


**Returns:** the full name of the application

### getVersion()

```java
String getVersion()
```

Returns the version of the application.


**Returns:** the version

### getMediaSetId()

```java
String getMediaSetId()
```

Returns the ID of the media file that was used to install this application.


**Returns:** the media file ID or an empty string if the application was installed with install4j < 4.1

### getCompilerVariable(String)

```java
String getCompilerVariable(String variableName)
```

Get the value of a compiler variable in the application.


**Parameters:**

- `variableName` — the name of the compiler variable

**Returns:** the value of the compiler variable or `null` if the variable is undefined

### getInstallerVariable(String)

```java
Object getInstallerVariable(String variableName)
```

Get the value of an installer variable that was saved to the automatically created response file `response.varfile`.


**Parameters:**

- `variableName` — the name of the installer variable

**Returns:** the value of the installer variable or `null` if the variable is undefined

