Start with the log
”<app> is still open” or ”… is in use”
Why: your program, or another program, holds a file that has to be replaced. Fix: close the app, or use Close and continue. Check for processes in the background, such as a tray icon. If a different program holds the file (the message names it), such as an antivirus or an editor, close it and click Try again.”There isn’t enough free space”
The message gives the space needed and free. Free up space, or choose another drive with Change.”Setup can’t write to …”
The chosen folder needs rights the user doesn’t have. Choose another folder, or if everyone should get the app, usescope = "machine".
”… is needed” page
A requirement wasn’t found. Install it with the button and click Try again. If you’re sure it’s installed, Continue anyway goes on.”Install an older …?” or a silent install says a newer version is installed
You’re installing a lower version than the one on the computer. Raise your version, or if you mean to downgrade, confirm in the window or pass--allow-downgrade.
”This folder already has files”
The chosen folder contains files with the same names that aren’t from your app. Pick another folder, unless you really mean to replace them.”This setup file is damaged”
The file is incomplete or was changed. Download it again and check it withbach verify.
A silent install exits with code 1 or 2
Run it from a terminal to see the message, and read the log. Code 2 means a wrong option or a missing access key. See Exit codes. Remember to useStart-Process -Wait -PassThru in PowerShell, or the code you see isn’t setup’s.
The installer asks for an administrator password
Why: one of these is set:installer.scope = "machine", elevated = true on a [[run]] step, or an elevated [[migrate]] removing an old installation for all users.
Fix: remove the one you don’t need. Without them, Bach never asks. Check what a setup file does with bach inspect.
The app doesn’t start after installing
- Start it from the install folder (
%LOCALAPPDATA%\Programs\<app>) and note any error. - A missing DLL such as
vcruntime140.dll: your app needs the Visual C++ runtime. Add thevcredistrequirement or build it in. - A .NET error: publish self-contained, or add the
dotnetrequirement. - A window that shows nothing (Tauri, WebView2 apps): add the
webview2requirement. - Missing data files: see Missing files.
bach test or a clean virtual machine, which don’t have your development tools.