Skip to main content
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”

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.

”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:
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 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.

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.