---
id: "T:cAlgo.API.InstallationError"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/AlgoRegistry/InstallationError/"
---

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

# InstallationError (enum)

Represents the predefined algo installation errors.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum InstallationError
```

Available since cAlgo.API 5.1.

## Examples

C#:

```csharp
public partial class TestExample : Robot
{
    protected override void OnStart()
    {
        var result = AlgoRegistry.Install("path/to-algo-file.algo");

        if (!result.Succeeded)
            Print($"Algo installation failed with error: {result.Error}");
    }
}
```

Python:

```python
import clr

clr.AddReference("cAlgo.API")

# Import cAlgo API types
from cAlgo.API import *

# Import trading wrapper functions
from robot_wrapper import *

class Test():
    def on_start(self):
        result = api.AlgoRegistry.Install("path/to-algo-file.algo")
        if result.Succeeded == False:
            print(f"Algo installation failed with error: {result.Error}")
```

config.json:

```json
{
  "AccessRights": "None"
}
```

## Values

- `InstallationError.Forbidden` — Installation error due to lack of permission by user.
- `InstallationError.InvalidFile` — Installation error due to algo file being invalid.
- `InstallationError.FileNotFound` — Installation error due to algo file not found in provided path (Only for file path based installations).
- `InstallationError.DownloadError` — Installation error due to algo file downloading error (Only for URI based installations).
- `InstallationError.Canceled` — When user cancels installation dialog.
- `InstallationError.Unknown` — Unknown or unrecognized error.

