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

# Common mistakes

> The mistakes that cause trouble later: changing the app id or scope, packaging the wrong folder, forgetting the feed after signing and others.

These are easy to make and annoying to fix after your app is on people's computers. Check them before your first public release.

## Changing the app id

The id (by default the app name) is how Bach recognizes an installation. A new id means a second copy next to the first. If you rename your app, set `id` to the old name. See [How bach.toml works](/docs/guides/write-bach-toml.md#the-id-keep-it-stable).

## Switching between per-user and machine-wide

A different `installer.scope` also counts as a different installation. Decide before the first release.

## Shipping without \[updates]

Copies installed without `[updates]` can never update themselves. If you might want automatic updates, add them from the first release.

## Pointing files.source at the project folder

You'd ship source code, caches and maybe secrets. Point it at a build folder, and read the `bach check` list.

## Signing, then forgetting the feed

Signing changes the file, so the checksum in `latest.json` no longer matches and updates fail. Use `bach build --sign`, or run `bach feed` after signing.

## Signing before building

Always build first, then sign. Building writes into the file.

## Losing the feed signing key

Apps that trust your `public_key` accept nothing else. Back up `feed-key.private` somewhere safe, outside Git.

## Testing only on your own computer

Your computer has runtimes and tools your users don't. Test with [`bach test`](/docs/reference/cli/test) or a clean virtual machine.

## Writing app data into the install folder

Machine-wide installs can't write there, and the uninstaller keeps files it didn't install. Use `%APPDATA%` or `%LOCALAPPDATA%`.

## Using bash syntax in PowerShell

`BACH_ACCESS_KEY=... bach build` works in bash only. In PowerShell: `$env:BACH_ACCESS_KEY = "..."; bach build`.


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