---
id: "P:cAlgo.API.InstallationResult.Error"
kind: "property"
type: "T:cAlgo.API.InstallationResult"
url: "https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/InstallationResult/Error/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# InstallationResult.Error

Member of [InstallationResult](https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/InstallationResult/index.md).

## Error

Returns algo installation error if algo installation failed otherwise null.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public InstallationError? Error {get;}
```

Python:

```python
installationResult.Error: InstallationError | None
```

### Returns

`InstallationError?` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var result = AlgoRegistry.Install(@"C:\Algos\Sample cBot.algo");
if (result.Error == InstallationError.FileNotFound)
    Print("The algo file was not found");
```

Python:

```python
result = api.AlgoRegistry.Install(r"C:\Algos\Sample cBot.algo")
if result.Error == InstallationError.FileNotFound:
    api.Print("The algo file was not found")
```

