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

# Package managers and download pages

> List your app in winget or Chocolatey and make a simple download page, with files Bach generates from your finished, signed setup file.

Package managers let people install your app from a terminal, for example `winget install YourName.HelloNotes`. This page shows how to create the files winget and Chocolatey need, and a download page for your website. All three commands read a finished setup file.

Run them on the final, [signed](/docs/guides/signing.md) file: they record its checksum, so any change afterwards breaks the listing. Each needs `--url`, the `https` address people download that exact file from.

## winget

winget is built into current versions of Windows.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach winget "dist/Hello-Setup-1.4.0.exe" --url https://example.com/Hello-Setup-1.4.0.exe --license MIT
```

This writes three manifest files into a `winget` folder next to the setup file. The package id is built from your publisher and app id, such as `HelloInc.Hello`. Without `--license`, they say `Proprietary` and Bach warns.

Check them and submit:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
winget validate dist/winget/HelloInc.Hello/1.4.0
```

Then open a pull request to [microsoft/winget-pkgs](https://github.com/microsoft/winget-pkgs). After Microsoft accepts it, people can run `winget install HelloInc.Hello`.

The manifests tell winget to install silently, to update by running the new setup file, and that Windows 10 version 1809 or newer is needed.

### Update the listing automatically

If you use Bach's [release workflow](/docs/guides/releasing.md), `bach workflow --winget HelloInc.Hello` makes it open the winget pull request after each normal release. Add a repository secret `WINGET_TOKEN` (a classic GitHub token with the `public_repo` scope). The first listing has to be submitted by hand, as above.

## Chocolatey

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach choco "dist/Hello-Setup-1.4.0.exe" --url https://example.com/Hello-Setup-1.4.0.exe --license MIT
cd <folder Bach printed>
choco pack
choco install <package id> --source .
```

`--license` takes a link or a short license name such as `MIT`. The version must be one NuGet accepts, such as `1.4.2` or `1.4.2-beta`. See [`bach choco`](/docs/reference/cli/choco).

## A download page

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach page "dist/Hello-Setup-1.4.0.exe" --url https://example.com/Hello-Setup-1.4.0.exe
```

This writes one HTML file, with your app's name, version, size, a download button and the SHA-256 checksum, into a `download` folder next to the setup file. It uses no scripts, so you can upload it to any web host. Add `--notes-file` for a short "What's new" list and `--winget <id>` to show the winget command. See [`bach page`](/docs/reference/cli/page).

## Scoop

Bach doesn't generate Scoop manifests. Scoop can install your setup file with a manifest you write yourself.


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