# FoundInstall record

> One game a store has installed on this machine, as a finder's Installs lists it: the store, the store's key for it, its title and its folder, with any art and whether it's being updated.

Namespace `EvilEngine.Mounts`, assembly `EvilEngine.Mounts`. Engine commit 4ff877b1.

```csharp
public sealed record FoundInstall
```

One game a store has installed on this machine, as a finder's [Installs](/docs/api/ifinder#installs) lists it: the store, the store's key for it, its title and its folder, with any art and whether it's being updated.

```csharp
new FoundInstall(Store, $"app/{id}", app.Get("name") ?? folder, path)
{
    Art = Art(id),
    State = InstallState.Installed
};
```

The main menu probes each install's folder in the background and lists the ones an installed adapter recognises in Content Mounts, unticked. Installs from every finder are merged, and when two point at the same folder the first one wins.

## Members

### FoundInstall (constructor)

```csharp
public FoundInstall(string Store, string Key, string Title, string Path)
```

Makes an install from its store, key, title and folder.

### Store (property)

```csharp
public string Store { get; init; }
```

The finder's [Store](/docs/api/ifinder#store), such as `steam`.

### Key (property)

```csharp
public string Key { get; init; }
```

The store's own key for the install. Steam's are `app/<id>`, as in `app/4000` for Garry's Mod. [TryFind](/docs/api/ifinder#tryfind) takes the same key, and the main menu matches it against `[stores]` in the adapters' `adapter.toml` to tell an installed game from one that isn't.

### Title (property)

```csharp
public string Title { get; init; }
```

The store's name for the game. The steam finder takes the `name` from the app manifest, or the install folder's name when there's none. The library titles a game by its adapter, not by this.

### Path (property)

```csharp
public string Path { get; init; }
```

The install's folder, an absolute host path, as in `steamapps/common/GarrysMod` in one Steam library. It's what the main menu probes and what a pointer saves when the player ticks the game.

### Art (property)

```csharp
public FoundArt Art { get; init; }
```

The [FoundArt](/docs/api/foundart) the store has cached for it, or [None](/docs/api/foundart#none) unless set.

### State (property)

```csharp
public InstallState State { get; init; }
```

The [InstallState](/docs/api/installstate), [Installed](/docs/api/installstate#installed) unless set.
