> For the complete documentation index, see [llms.txt](https://xgine.gitbook.io/xgine-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xgine.gitbook.io/xgine-docs/getting-started/visual-cpp-redistributable.md).

# Visual C++ Redistributable

Ragnabot depends on Visual C++ runtime libraries to function properly. If you encounter errors like **"MSVCP140.dll is missing"** or **"VCRUNTIME140.dll not found"**, you need to install the Visual C++ Redistributable packages.

***

## ❓ Why Is This Needed?

Ragnabot and some of its dependencies are built with Microsoft Visual C++. The runtime libraries are required to run these components. Most Windows PCs already have them installed, but a fresh or minimal Windows installation may not.

{% hint style="info" %}
If Ragnabot launches without errors, you likely already have the required runtimes installed and can skip this guide.
{% endhint %}

***

## 📥 Download

Download the **Visual C++ Redistributable Runtime Package All-in-One** from TechPowerUp:

👉 <https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/>

This package bundles **all** Visual C++ Redistributable versions (2005 through 2022) into a single installer, so you don't have to download each one individually.

***

## 🛠️ Installation Steps

### Step 1: Download the Archive

Click the download button on the TechPowerUp page and save the `.zip` file to your computer.

### Step 2: Extract

Right-click the downloaded `.zip` file and select **Extract All**. Choose any folder you like.

### Step 3: Run the Installer

1. Open the extracted folder
2. Right-click **`install_all.bat`** and select **Run as administrator**
3. Wait for the installation to complete — a command prompt window will open and install each runtime automatically

{% hint style="warning" %}
You **must** run the installer as Administrator. Right-click → **Run as administrator**. Without elevated permissions, the installation will fail silently.
{% endhint %}

### Step 4: Restart Your PC

After the installation finishes, **restart your computer** to ensure all runtime libraries are properly registered.

***

## ✅ Verify Installation

After restarting, launch **Ragnabot.exe**. If the missing DLL errors are gone, the installation was successful.

{% hint style="success" %}
**Tip:** This is a one-time setup. You won't need to reinstall these runtimes unless you reinstall Windows.
{% endhint %}

***

## 🔍 Common Errors Fixed by This Package

| Error Message                              | Cause                                   |
| ------------------------------------------ | --------------------------------------- |
| `MSVCP140.dll is missing`                  | Missing VC++ 2015-2022 runtime          |
| `VCRUNTIME140.dll not found`               | Missing VC++ 2015-2022 runtime          |
| `MSVCR120.dll is missing`                  | Missing VC++ 2013 runtime               |
| `MSVCR110.dll is missing`                  | Missing VC++ 2012 runtime               |
| `Application failed to start (0xc000007b)` | Missing or mismatched runtime (x86/x64) |

{% hint style="info" %}
The All-in-One package installs both **x86 (32-bit)** and **x64 (64-bit)** versions of every runtime, so it covers all cases.
{% endhint %}

***

## 💬 Still Having Issues?

If you're still getting errors after installing the runtimes:

1. Make sure you **restarted your PC** after installation
2. Try re-running `install_all.bat` as Administrator
3. Reach out on our **Discord** for support: <https://discord.com/invite/ZD9BNfCe5k>


---

# 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://xgine.gitbook.io/xgine-docs/getting-started/visual-cpp-redistributable.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.
