> ## 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.

# [profiles.NAME]: variations of your build

> Define other builds such as a company version or portable ZIP: profile settings, how overrides merge, default output names and the limits.

A profile builds the same app with some settings changed. Walkthrough: [Other builds](/docs/guides/other-builds.md#profiles).

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[profiles.enterprise]
description = "For IT departments"

[profiles.enterprise.installer]
scope = "machine"
desktop_shortcut = false

[profiles.portable]
kind = "zip"
description = "Unzip and run"
```

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach profiles
bach build --profile enterprise
bach build --all-profiles
bach check --profile portable
```

A profile name is lowercase letters, digits and `-`, up to 32 characters.

| Setting | Default | Meaning |
| - | - | - |
| `kind` | `"setup"` | `"setup"` for a setup file, `"zip"` for a ZIP of the files |
| `description` | none | Shown by `bach profiles` |
| `output` | see below | Output path, with `{name}`, `{version}`, `{id}` |

Default outputs: `dist/{name}-NAME-Setup-{version}.exe` (setup) and `dist/{name}-NAME-{version}.zip` (zip).

## Overrides

Every other key is a `bach.toml` section laid over the main file: `app`, `files`, `installer`, `uninstall`, `components`, `protocols`, `file_types`, `text`, `requirements`, `shortcuts`, `run`, `registry`, `env`, `context_menu`, `services`, `firewall`, `migrate`, `updates`, `access`, `signing`, `style`, `layout`, `arch`. Tables merge key by key; lists such as `[[components]]` are replaced entirely:

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[[profiles.portable.components]]
id = "samples"
title = "Samples"
files = ["samples/**"]
default = true
```

A profile can't change `config_version` or contain profiles.

## Notes

* A ZIP contains the files of default-ticked components, with fixed dates so the same input gives the same ZIP. No window, uninstaller, updates, signing or encryption.
* A setup profile has the same `app.id` as the main build unless you change it. To install side by side, give it its own `id` and `installer.folder`.
* Profile builds never write the update feed. `--msi` also works for a setup profile.
* Profiles are Windows builds.


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