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

# [app]: name, version, publisher and program

> Every setting of the [app] section: name, version, publisher, executable, id, description, website and icon, with defaults, rules and examples.

`[app]` says what your app is. Bach uses these values in the install window, in Windows' list of installed apps and to recognize the app when it's updated. The section is required.

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[app]
name = "Hello Notes"
version = "1.4.0"
publisher = "Hello Inc."
executable = "hello-notes.exe"
id = "Hello Notes"
description = "Quick notes that stay on your computer."
website = "https://example.com"
icon = "assets/hello-notes.ico"
```

## `name`

Text, required. The name people see: the window title, the Start menu, shortcuts and Settings › Apps. If `id` isn't set, the name is also used as the id, so it may only contain what an id may contain.

## `version`

Text, required. Your app's version, shown in the window and Settings › Apps. Use dotted numbers such as `1.4.0`, optionally with a suffix such as `2.0.0-beta.1`. Bach compares versions to detect updates and downgrades.

* A version it can't compare, such as `latest`, only causes a warning, but then every setup file counts as an update and downgrades aren't detected.
* With `[updates]`, the version must be comparable, or the build fails.
* `--app-version` on `bach build` or `bach check` replaces this value for one run. A leading `v` is removed.

## `publisher`

Text, required. You or your company. Shown in the window's footer and in Settings › Apps.

## `executable`

Path, required for Windows. Your program, relative to `files.source`, such as `hello-notes.exe` or `bin/hello-notes.exe`. It must be an `.exe` and must be in the installed files (not excluded and not part of a component). Shortcuts and the **Open** button start it.

## `id`

Text, optional. Default: `name`. Identifies your app on a computer across versions. It names the install folder (unless `installer.folder` is set) and the registry entry under Settings › Apps.

Allowed: letters, digits, spaces, `.`, `-` and `_`, at most 64 characters, not starting or ending with a space or dot, and not a name Windows reserves such as `CON`.

> [!WARNING]
>
> Don't change the id after your first release. A new setup file with a different id installs a second copy instead of updating.

## `description`

Text, optional. One line about the app. It's shown under the heading on the first page (unless `[text] install_subtitle` replaces it) and as the shortcut's tooltip.

## `website`

Link, optional. Must start with `https://` (or `http://`). Shown as the support link in Settings › Apps, and on the last page of the window if `installer.website_button` is `true`.

## `icon`

Path to a `.ico` file, optional, relative to `bach.toml`. It becomes the setup file's icon and the window's icon. If `installer.logo` isn't set, the largest PNG image inside the `.ico` is used as the logo. If the `.ico` has no PNG image, Bach warns and shows its own mark. Include sizes from 16 to 256 pixels.

On macOS and Linux build computers, the icon can't be applied to a Windows setup file. For the Mac build, use [`macos.icon`](/docs/reference/config/macos).


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