> ## 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 does installing fail or the app not start?

> Solve failed installs, 'is still open' and 'file in use' errors, missing requirements, downgrades, admin prompts and apps that don't start.

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

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
%TEMP%\<app id>-setup.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"`](/docs/guides/machine-wide-installs).

## "... is needed" page

A [requirement](/docs/guides/requirements.md) 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](/docs/reference/setup/exit-codes.md). 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](/docs/guides/requirements) 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](/docs/troubleshooting/missing-files.md).

The easiest way to reproduce this is [`bach test`](/docs/reference/cli/test) or a clean virtual machine, which don't have your development tools.


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