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

# Why can't Bach find my program or files?

> Fix 'there's no such file' errors, wrong source folders and installers that are missing files, by checking paths, excludes and the file list.

This page covers two related problems: Bach says your program doesn't exist, or your installed app is missing files.

## "there's no such file or app"

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
app.executable is "hello.exe", but there's no such file or app in build (or it's excluded).
```

**Why:** `app.executable` is looked up inside `files.source`, not next to `bach.toml`.

**Check:**

1. Open the folder named after "in" in the message. Is your `.exe` there?
2. Is the name exactly right? `hello-notes.exe` is not `HelloNotes.exe`.
3. Does an `exclude` pattern match it?

**Fix:**

* Build your app first, if the folder is empty or old.
* If the program is in a subfolder, include it: `executable = "bin/hello.exe"`.
* Set `files.source` to the folder your build tool really writes to. For common tools, see [Prepare your build folder](/docs/guides/prepare-your-app.md#where-common-tools-put-it).

## "files.source is ..., but ... isn't a folder"

The folder doesn't exist relative to `bach.toml`. Paths are relative to the folder that holds `bach.toml`, not your current terminal folder. Check the spelling and build your app.

## My installer is missing files

**Check the list:**

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
bach check
```

The list shows every file that will be installed.

**Why a file can be missing:**

* It isn't inside `files.source`. Bach only packages that one folder. Copy it in as part of your build.
* An `exclude` pattern matches it. A pattern without `/`, such as `config.json`, matches that name in every folder.
* It belongs to a [component](/docs/guides/choices-and-components.md) the user didn't tick. `bach check` shows the component id next to the file.

## My app works from the build folder but not when installed

Your app may look for files relative to the **current folder** instead of the folder it's in. Shortcuts and the **Open** button start it, and the current folder may not be what you expect. Load files relative to your program's location.

It may also need a runtime that your development computer has. See [Install problems](/docs/troubleshooting/install-problems.md#the-app-doesnt-start-after-installing).

## Check that it's fixed

`bach check` lists the file. Install on a test computer or with `bach test`, and look in the install folder.


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