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

# bach preview: see the installer window without installing

> bach preview [CONFIG]: opens the real installer or uninstaller window with every step pretended. Flags: --uninstall, --theme and --lang. Needs Windows.

`bach preview` opens the installer window exactly as your config makes it, and pretends every step. Nothing is installed or removed.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach preview
bach preview --theme dark --lang de
bach preview --style arcade
bach preview --layout showcase
bach preview --uninstall
```

| Argument or flag | Default | Meaning |
| - | - | - |
| `CONFIG` | `bach.toml` | The config file |
| `--uninstall` | off | Show the removal window instead |
| `--theme THEME` | from the config | Override the theme: `system`, `light` or `dark` |
| `--lang CODE` | Windows' own | Show it in this language (`en`, `de`, `fr` and so on) |
| `--style NAME` | from the config | Try another built-in style without changing `bach.toml`. It opens in the theme that style looks best in unless `--theme` says otherwise. [`bach styles`](/docs/reference/cli/styles) lists them. |
| `--layout NAME` | from the config | Try another built-in layout without changing `bach.toml`; it replaces the config's `[layout]` whole and keeps its pictures. [`bach layouts`](/docs/reference/cli/layouts) lists them. |
| `--profile NAME` | main build | Show this [profile](/docs/reference/config/profiles.md) of the config. [`bach profiles`](/docs/reference/cli/profiles) lists them. |
| `--runtime PATH` | `bach-setup.exe` next to `bach` | The setup runtime to build on. Also read from `BACH_RUNTIME`. |

## Notes

* Preview needs Windows. On macOS and Linux, use [`bach check`](/docs/reference/cli/check).
* It shows the window as it would be for a fresh install. Requirement pages and the license page appear when your config needs them.
* It is the safe way to verify copy, languages, accent colours and both themes. Check long app names and long install paths too: text wraps instead of clipping.
* Designing the window? [`bach watch`](/docs/reference/cli/watch) keeps it open and reopens it every time you save.

See [The installer window](/docs/concepts/installer-window.md).


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