Skip to main content
When an install fails, the window shows a sentence and Try again, and nothing half-installed is left behind. This page covers the usual messages and what to do.

Start with the log

Paste that path into File Explorer’s address bar. It lists each step and the reason for a failure. The failed page’s Save support info button puts a copy with system details on the desktop, which users can send you.

”<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, use scope = "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 with bach 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 use Start-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

  1. Start it from the install folder (%LOCALAPPDATA%\Programs\<app>) and note any error.
  2. A missing DLL such as vcruntime140.dll: your app needs the Visual C++ runtime. Add the vcredist requirement or build it in.
  3. A .NET error: publish self-contained, or add the dotnet requirement.
  4. A window that shows nothing (Tauri, WebView2 apps): add the webview2 requirement.
  5. Missing data files: see Missing files.
The easiest way to reproduce this is bach test or a clean virtual machine, which don’t have your development tools.