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

> bach verify checks a setup file for damage against the checksums recorded when it was built, without installing it, and reports signatures.

`bach verify` checks that a setup file is complete and unchanged, for example after a download or on a file a build server produced. It installs and writes nothing.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach verify "dist/Hello Notes-Setup-1.0.0.exe"
```

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
Verifying Hello Notes 1.0.0 (dist\Hello Notes-Setup-1.0.0.exe)
  Signature    not signed
  Archive      SHA-256 matches (1549 bytes)
  Files        2 checked against the manifest
dist\Hello Notes-Setup-1.0.0.exe is intact.
```

| Argument or flag | Meaning |
| - | - |
| `FILE` | The setup file |
| `--key-file FILE` | The access key, to check encrypted files. Also `BACH_ACCESS_KEY`. |

It checks the archive against its checksum, every file against its size and checksum, and that nothing is missing or extra. A damaged file exits with code 1 and names the first bad files.

* `Signature` only says whether a signature is present. To check that it's valid, use `signtool verify /pa`.
* Without the key, an encrypted file's archive is still checked, but not its contents.
* An online installer or uninstaller contains no files to check. Patches are checked too.

With `--json`: `verified`, `signature`, `files`, `name`, `version`.


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