> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Bach builds Windows installers from one bach.toml with the bach command: bach init, bach check, bach preview, bach build. Installs are per user and need no administrator rights by default. installer.scope = "machine" installs for every user after one Windows prompt. On Windows, run setup files with Start-Process -Wait -PassThru in PowerShell, and give signtool arguments that start with the word sign.

# [[requirements]]: what must be installed first

> Every requirement kind and field, how setup detects each one, what happens when something is missing, and which Windows versions Bach supports.

Each `[[requirements]]` block names something your app needs. Setup checks for it before changing anything, without administrator rights. Walkthrough: [Requirements](/docs/guides/requirements.md).

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[[requirements]]
kind = "dotnet"
version = "8.0"
desktop = true
```

## Fields

| Field | Used by | Meaning |
| - | - | - |
| `kind` | all (required) | `webview2`, `dotnet`, `vcredist`, `windows`, `file` or `registry` |
| `version` | `dotnet` (required) | Major and minor, such as `"8.0"` |
| `desktop` | `dotnet` | `true` for the Windows Desktop runtime (WPF, Windows Forms). Default `false`. |
| `build` | `windows` (required) | Lowest Windows build number, 10000 to 99999 |
| `path` | `file` (required) | The file to look for. `%VARIABLES%` are filled in. |
| `key` | `registry` (required) | A key starting with `HKLM\` or `HKCU\` |
| `name` | `file`, `registry` (required) | What the window calls it. Optional override for other kinds. |
| `url` | `file`, `registry` (required) | `https` download page. Optional override for other kinds. |

Default names and links:

| Kind | Name |
| - | - |
| `webview2` | Microsoft Edge WebView2 |
| `dotnet` | .NET Runtime, or .NET Desktop Runtime with `desktop = true` |
| `vcredist` | Microsoft Visual C++ Redistributable |
| `windows` | Windows (build N or newer), linking to microsoft.com/windows |

## How each is detected

* `webview2`: the WebView2 entry in the computer's or user's registry.
* `dotnet`: the .NET registry record, `DOTNET_ROOT` and the Program Files folders, for a version starting with `version`.
* `vcredist`: the Visual C++ 2015-2022 x64 runtime (on ARM64 computers, the ARM64 or x64 runtime).
* `windows`: the installed build number.
* `file`: the file exists.
* `registry`: the key exists. For `HKLM`, the 32-bit view is checked too.

## When something is missing

The window shows a page naming it, with a button to `url`, **Try again**, and **Continue anyway** (for the case it's installed somewhere setup didn't look). Skipped requirements are written to the log.

A silent install stops with exit code 1 and prints what's missing and where to get it. `--skip-requirements` continues anyway.

## Supported Windows versions

Setup files are made for Windows 10 version 1809 (build 17763) and newer, and Windows 11. Bach tests on Windows 11, Windows on ARM and Windows Server 2022. A `windows` requirement lower than 17763 makes Bach warn, since the window may not run there anyway.

Common builds: 10240 (first Windows 10), 17763 (1809), 19041 (2004), 22000 (Windows 11).

The window texts `requirement_title`, `requirement_subtitle`, `requirement_button` and `requirement_skip` can be [changed](/docs/reference/config/text.md). Requirements don't apply to the Mac build; use [`macos.minimum_version`](/docs/reference/config/macos).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.