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

# Other builds: online, portable, profiles and ARM64

> Make a small online installer, a portable ZIP, a company version with its own settings, and an ARM64 setup file from the same bach.toml.

`bach build` normally writes one setup file for 64-bit Intel and AMD computers. This page covers the other kinds of builds you can get from the same `bach.toml`.

## Online installer

An online installer is a small setup file without your app inside. When someone runs it, it downloads the newest version from your [update feed](/docs/guides/update-hosting.md) and installs it. Your download link never has to change.

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[installer]
online = true

[updates]
github = "your-name/hello-notes"
```

`bach build` then writes both the normal setup file and `<name>-Web-Setup.exe`. `bach build --online` does it once without the setting. The online installer is about the size of Bach's install window (around 9 MB).

* The download is checked against the feed's checksum, the app id and the version before it runs.
* It needs a network. Without one, the window says so, and **Try again** continues.
* It always installs the newest version, including components added since it was built.

## Profiles

A profile is a variation of your build that changes only some settings. For example, a version for companies and a portable ZIP:

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[profiles.enterprise]
description = "For IT departments"

[profiles.enterprise.installer]
scope = "machine"
desktop_shortcut = false

[profiles.portable]
kind = "zip"
description = "Unzip and run, nothing installed"
```

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach profiles                       # list them
bach build --profile enterprise     # build one
bach build --all-profiles           # the main build and every profile
```

Inside a profile, write only what differs. Sections are merged setting by setting; lists such as `[[components]]` are replaced as a whole.

### Portable ZIP

`kind = "zip"` makes a ZIP of your files, which people can unpack and run without installing. It includes the components ticked by default. It has no install window, no uninstaller and no updates, and can't be protected with an access key.

### Company version

A setup profile has the same app id as your main build, so it counts as the same app on a computer. If both should be installable side by side, give the profile its own `app.id` and `installer.folder`. Profile builds don't change your update feed.

## ARM64

Your x64 setup file also runs on Windows on ARM computers. If you have a native ARM64 build of your app, you can ship an ARM64 setup file too:

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[files]
source = "build/x64"

[arch.arm64]
source = "build/arm64"
```

You need the ARM64 version of Bach's install window. It's `bach-setup.exe` in `bach-<version>-windows-arm64.zip` on the [releases page](https://github.com/usebach/bach/releases):

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach build --runtime-arm64 tools/arm64/bach-setup.exe
```

You can also set it as `runtime` in `[arch.arm64]`. You get `Hello-Setup-1.4.0.exe` and `Hello-Setup-1.4.0-arm64.exe`, and with `[updates]`, one feed listing both. `--x64-only` skips the ARM64 build. See [`[arch.arm64]`](/docs/reference/config/arch).

## macOS

A `[macos]` section builds a Mac version too. See [Ship for macOS](/docs/guides/macos.md).

## MSI

`bach build --msi` writes a Windows Installer package for companies. See [Company deployment](/docs/guides/msi.md).


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