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

# What Bach is

> Bach turns the folder your app builds into one Setup.exe with an install window, updates and an uninstaller. Learn what it does and where to start.

Bach makes installers. You point it at the folder that holds your finished app, describe the app in a short file called `bach.toml`, and run `bach build`. You get one `Setup.exe` file that you can give to anyone with a Windows computer. Bach can also make a macOS version from the same file.

When someone runs your `Setup.exe`, they see one window. They click **Install**, and your app is on their computer, with a Start menu shortcut and an entry under **Settings › Apps** to remove it again.

![Bach's install window in light mode: install location, a sample-notes component, desktop shortcut and start-with-Windows options, Cancel and Install buttons](https://mintcdn.com/bach/Nejvqm3NCmw8u8dx/images/install-light.png?fit=max\&auto=format\&n=Nejvqm3NCmw8u8dx\&q=85\&s=cd71edab53dfda9f6780fd902884e2b2)

The install window in light and dark mode.

## Building your app and packaging it are different jobs

Before Bach can do anything, your app has to be **built**. Building means turning your source code into the files that run: usually an `.exe` plus the libraries and other files it needs. Your own tools do that, for example `cargo build --release`, `dotnet publish` or your Electron packager. The result is a folder, which these docs call the **build folder**.

**Packaging** is what Bach does next. It takes the build folder as it is and puts it into a single setup file. Bach never compiles your code and never changes your program.

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
your source code  ──(your build tool)──▶  build folder  ──(bach build)──▶  Setup.exe
```

## What you write

Here is a complete `bach.toml` for a small app:

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[app]
name = "Hello Notes"
version = "1.0.0"
publisher = "Your Name"
executable = "hello-notes.exe"

[files]
source = "build"
```

It says what the app is called, who made it, which program to start, and which folder to package. That's enough to get a working installer. Everything else is optional.

## What the installer does for your users

Without any extra settings, the setup file:

* installs the app for the person who runs it, into `%LOCALAPPDATA%\Programs\<your app>`, without asking for an administrator password
* creates a Start menu shortcut and offers a desktop shortcut
* lists the app under **Settings › Apps** with an uninstaller
* speaks the user's Windows language (19 languages are built in) and follows light or dark mode
* updates an existing install in place when the user runs a newer setup file
* asks to close the app first if it's still running

You can add more with settings: optional parts the user can leave out, a license to accept, file types your app opens, automatic updates, your own colors and logo, and so on.

## What you need

* A computer running Windows, macOS or Linux to run the `bach` command. Building on Windows gives the best result: on macOS and Linux, the setup file keeps Bach's own icon and file details instead of yours.
* Windows to try the install window with `bach preview` and to test the real installer.
* Your app, already built, in one folder.

Your users need Windows 10 version 1809 or newer. The setup file doesn't need .NET or the Visual C++ runtime. (Your own app might; Bach can [check for that](/docs/guides/requirements.md).)

## When Bach isn't the right tool

Bach covers the common case of installing a desktop app. It has no scripting language, so it can't do things that need custom install logic, and it can't install drivers. A setup file is also about 10 MB bigger than the files it carries, which matters if your app is tiny. See [Known limitations](/docs/resources/limitations.md) for the full list, and [Why Bach](/docs/why-bach.md) for how it compares with NSIS, Inno Setup and WiX.

## Where to start

1. [Install Bach](/docs/installation.md) on your computer.
2. [Make your first installer](/docs/quickstart.md). It takes a few minutes and includes a sample app if you don't have one handy.
3. Read the guide for your framework: [Electron](/docs/frameworks/electron.md), [Tauri](/docs/frameworks/tauri.md), [Rust](/docs/frameworks/rust.md), [.NET](/docs/frameworks/dotnet.md), [Godot and Unity](/docs/frameworks/godot-and-unity.md), or [any other app](/docs/guides/prepare-your-app.md).

Looking up a specific setting or command? Go to the [bach.toml reference](/docs/reference/config/overview.md) or the [command reference](/docs/reference/cli/overview.md). Something not working? Start at [Troubleshooting](/docs/resources/troubleshooting.md).

Bach is open source under the MIT license. The code is at [github.com/usebach/bach-installer](https://github.com/usebach/bach-installer).


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