> For the complete documentation index, see [llms.txt](https://docs.sealights.io/knowledgebase/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/c++-agent/c++-agent-for-windows-beta/downloading-the-c++-agent-windows.md).

# Downloading the C++ Agent (Windows)

Two download strategies are available — choose based on your environment.

### Strategy 1: Latest version

{% hint style="warning" %}
Use for quick starts, sandbox environments, or proof-of-concept work. Avoid this strategy in production pipelines because the version may change without notice.
{% endhint %}

{% tabs %}
{% tab title="PowerShell" %}

```powershell
$dest = "C:\SealightsAgent"
Invoke-WebRequest `
  -Uri "https://agents.sealights.co/slcpp/latest/sealights-cpp-agent-windows-self-contained.zip" `
  -OutFile "sealights-cpp-agent.zip"
Expand-Archive -Path "sealights-cpp-agent.zip" -DestinationPath $dest -Force
```

{% endtab %}

{% tab title="Azure DevOps" %}

```yaml
- task: PowerShell@2
  displayName: Download SeaLights C++ Agent (latest)
  inputs:
    targetType: inline
    script: |
      Invoke-WebRequest `
        -Uri "https://agents.sealights.co/slcpp/latest/sealights-cpp-agent-windows-self-contained.zip" `
        -OutFile "sealights-cpp-agent.zip"
      Expand-Archive -Path "sealights-cpp-agent.zip" `
        -DestinationPath "$(Agent.ToolsDirectory)\SealightsAgent" -Force
```

{% endtab %}
{% endtabs %}

### Strategy 2: Specific version (Recommended)

{% hint style="info" %}
Use for production pipelines. Pinning the version keeps builds reproducible. Update the variable in one place to upgrade all pipelines.
{% endhint %}

{% tabs %}
{% tab title="PowerShell" %}

```powershell
$SL_CPP_VERSION = "0.5.9.1"
$dest = "C:\SealightsAgent"
Invoke-WebRequest `
  -Uri "https://agents.sealights.co/slcpp/v$SL_CPP_VERSION/sealights-cpp-agent-windows-self-contained.zip" `
  -OutFile "sealights-cpp-agent.zip"
Expand-Archive -Path "sealights-cpp-agent.zip" -DestinationPath $dest -Force
Write-Host "SeaLights C++ Agent $SL_CPP_VERSION installed to $dest"
```

{% endtab %}

{% tab title="Azure DevOps" %}

```yaml
variables:
  SL_CPP_VERSION: '0.5.9.1'

steps:
- task: PowerShell@2
  displayName: Download SeaLights C++ Agent $(SL_CPP_VERSION)
  inputs:
    targetType: inline
    script: |
      Invoke-WebRequest `
        -Uri "https://agents.sealights.co/slcpp/v$(SL_CPP_VERSION)/sealights-cpp-agent-windows-self-contained.zip" `
        -OutFile "sealights-cpp-agent.zip"
      Expand-Archive -Path "sealights-cpp-agent.zip" `
        -DestinationPath "$(Agent.ToolsDirectory)\SealightsAgent" -Force
      Write-Host "SeaLights C++ Agent $(SL_CPP_VERSION) installed"
```

{% endtab %}
{% endtabs %}

### After extracting

The self-contained agent package needs no .NET runtime installation. Reference `SL.Agent.Cpp.exe` by its full path in all subsequent commands. For example: `C:\SealightsAgent\SL.Agent.Cpp.exe`.

You can download `.zip` and `.tar.gz` archives from the same URL paths. Use `.zip` for Windows pipelines.

Next step: MSBuild Integration


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/c++-agent/c++-agent-for-windows-beta/downloading-the-c++-agent-windows.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
