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

> bach diff compares two setup files of one app: files added, removed and changed, changes to Windows, and which files made the app bigger.

`bach diff` shows what changed between two versions of your installer. Use it to see what a release really ships, or why it grew.

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

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
Hello 1.0.0 → 1.1.0
  Files        1 added, 1 removed, 1 changed, 0 unchanged
  Installed    585.9 KB → 195.3 KB (-390.6 KB)
  Packed       586.0 KB → 195.4 KB (-390.6 KB)

Files:
  - data.bin  (585.9 KB)
  + extra.dat  (195.3 KB)
  ~ hello.exe  (2 bytes → 4 bytes, +2 bytes)

Made the app bigger:
     +195.3 KB  extra.dat
      +2 bytes  hello.exe
```

| Argument or flag | Default | Meaning |
| - | - | - |
| `OLD`, `NEW` | required | Two setup files of the same app id |
| `--top N` | 5 | How many files to list under "Made the app bigger" |

* Files are compared by checksum (by size for very old setup files, which the output says).
* A **Besides files** section lists changes to what setup does to Windows: registry values, variables, menu entries, shortcuts, links, file types, run steps, requirements, components, services and migrations.
* The size ranking is about installed size; compression makes it impossible to say how much each file adds to the setup file.

With `--json`: `old_version`, `new_version`, `unchanged`, `installed_growth`, `setup_size_old`, `setup_size_new`, `changed_files`, `changes`. The GitHub Action's `compare` input runs this for you.


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