# Bach > Bach builds modern, clean Windows installers. Write one bach.toml, run bach build, and ship a single Setup.exe with a native-looking window, in-place updates and a clean uninstaller. > ## 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. - [What Bach is](https://bach.mintlify.dev/docs/index.md): Bach turns the folder your app builds into one Setup.exe with an install window, updates and an uninstaller. Learn what it does and where to start. - [Install Bach](https://bach.mintlify.dev/docs/installation.md): Install the bach command with npm, a PowerShell or shell script, Scoop, a zip file, Cargo or the GitHub Action, then check that it works. - [Make your first installer](https://bach.mintlify.dev/docs/quickstart.md): Follow every step from a finished app to a working Setup.exe: install Bach, create bach.toml, check it, preview the window, build and test it. - [How bach.toml works](https://bach.mintlify.dev/docs/guides/write-bach-toml.md): Understand the config file behind every Bach installer: where it goes, how TOML sections work, which settings are required and how Bach checks them. - [Preview, build and test your installer](https://bach.mintlify.dev/docs/guides/preview-and-build.md): Check your config, try the install window without installing, build the setup file, look inside it and test a real install safely in Windows Sandbox. - [Ship your first update](https://bach.mintlify.dev/docs/guides/first-update.md): Release a new version of your app: raise the version, build again and run the new setup file over the old install. See what changes and what stays. - [Prepare your build folder](https://bach.mintlify.dev/docs/guides/prepare-your-app.md): Bach installs one folder. Learn what belongs in your build folder, where Qt, Flutter, Wails and PyInstaller put theirs, and how to check it. - [Package an Electron app](https://bach.mintlify.dev/docs/frameworks/electron.md): Turn the unpacked output of electron-builder or Electron Forge into a Setup.exe with Bach: build the folder, write bach.toml, check and build. - [Package a Tauri app](https://bach.mintlify.dev/docs/frameworks/tauri.md): Make a Setup.exe for a Tauri app with Bach: build the release program, let bach init fill in the config, require WebView2 and check the file list. - [Package a Rust app](https://bach.mintlify.dev/docs/frameworks/rust.md): Make a Setup.exe for a Rust program with Bach: build in release mode, clean up target/release, handle the Visual C++ runtime and build the installer. - [Package a .NET app](https://bach.mintlify.dev/docs/frameworks/dotnet.md): Publish a .NET app and turn it into a Setup.exe with Bach, either self-contained or with a check that installs only where the .NET runtime is present. - [Package a Godot or Unity game](https://bach.mintlify.dev/docs/frameworks/godot-and-unity.md): Export your Godot or Unity game for Windows, then make an installer with Bach. Covers the files that must ship, files to leave out and game styles. - [Choose which files to include](https://bach.mintlify.dev/docs/guides/choose-files.md): Decide what goes into your installer: set the source folder, leave files out with exclude patterns, and handle secrets, clutter and long paths. - [Where your app is installed](https://bach.mintlify.dev/docs/guides/machine-wide-installs.md): Install for one user without an administrator prompt, or for every user of a computer in Program Files. Learn about folders, defaults and permissions. - [Install options and optional components](https://bach.mintlify.dev/docs/guides/choices-and-components.md): Let users choose shortcuts, autostart or PATH, and which optional parts of your app to install. Learn the four option values and how updates keep them. - [Customize the install window](https://bach.mintlify.dev/docs/guides/customize-the-window.md): Change the install window's logo, colors, theme, style, layout, languages, license page and texts, and preview each change as you make it. - [Shortcuts, links, file types and PATH](https://bach.mintlify.dev/docs/guides/integration.md): Add extra Start menu shortcuts, open your app from links or files, add right-click entries, start with Windows, set PATH and registry values. - [Check that your app's requirements are installed](https://bach.mintlify.dev/docs/guides/requirements.md): Stop an install early when WebView2, .NET, the Visual C++ runtime, a file, a registry key or a Windows version your app needs is missing. - [Run programs during setup](https://bach.mintlify.dev/docs/guides/run-programs.md): Run a program from your app during install or removal, such as a runtime installer or a first-time setup step, including with administrator rights. - [Uninstalling and user data](https://bach.mintlify.dev/docs/guides/uninstall-and-user-data.md): What the uninstaller removes and keeps, how to let users delete their app data, which folders are allowed, and how quiet removal works. - [Move from Inno Setup, NSIS or an MSI](https://bach.mintlify.dev/docs/guides/migrate-from-another-installer.md): Turn an old installer script into a bach.toml, and remove the old installation on first install so users don't end up with your app twice. - [How updates work](https://bach.mintlify.dev/docs/guides/updates.md): Understand both kinds of Bach updates, what is kept or removed, what happens when something fails, and what you publish for automatic updates. - [Set up automatic updates](https://bach.mintlify.dev/docs/guides/automatic-updates.md): Let your installed app find, download and install new versions on its own, and let your app check for updates or update when the user quits. - [Where to host updates](https://bach.mintlify.dev/docs/guides/update-hosting.md): Publish the setup file and update feed on GitHub releases or any web host, add mirrors, serve private updates and combine x64, ARM64 and macOS. - [Protect your updates](https://bach.mintlify.dev/docs/guides/update-security.md): What installed apps check before running an update, and how to add signed feeds, a required code signature, expiry dates and a new signing key. - [Patches, staged rollouts and beta versions](https://bach.mintlify.dev/docs/guides/patches-and-rollouts.md): Make update downloads smaller with patches, release to a share of users first with rollouts, and offer a separate beta channel to people who want it. - [One-click releases from GitHub](https://bach.mintlify.dev/docs/guides/releasing.md): Add Bach's release workflow to your repository and publish a new version by pressing Run workflow: version, build, installer, tag and release. - [Build in GitHub Actions and other CI](https://bach.mintlify.dev/docs/guides/ci.md): Build installers in CI with the usebach/bach-installer GitHub Action or the install scripts, publish releases, sign, handle secrets and pin the Bach version. - [Sign your setup file](https://bach.mintlify.dev/docs/guides/signing.md): Why Windows warns about unsigned installers, how to sign a Bach setup file with signtool, let bach sign it for you, and verify the signature. - [Antivirus warnings](https://bach.mintlify.dev/docs/guides/antivirus.md): Why antivirus software sometimes flags new installers, what has been seen with Bach, and what you can do: sign, report false positives and exclude. - [Silent installs and uninstalls](https://bach.mintlify.dev/docs/guides/silent-installs.md): Install or remove a Bach app without a window, for scripts and IT tools: choose options and folders, read exit codes and logs, and wait correctly. - [Company deployment: MSI, Intune and Group Policy](https://bach.mintlify.dev/docs/guides/msi.md): Build an .msi from the same bach.toml for Group Policy, Configuration Manager and Intune, prepare Intune settings, and know what an MSI can't do. - [Package managers and download pages](https://bach.mintlify.dev/docs/guides/winget.md): List your app in winget or Chocolatey and make a simple download page, with files Bach generates from your finished, signed setup file. - [Other builds: online, portable, profiles and ARM64](https://bach.mintlify.dev/docs/guides/other-builds.md): Make a small online installer, a portable ZIP, a company version with its own settings, and an ARM64 setup file from the same bach.toml. - [Protect a paid or private app with access keys](https://bach.mintlify.dev/docs/guides/paid-apps.md): Require a key before installing, encrypt the packaged files, give each customer their own key and keep updates private. Know what it can't protect. - [Ship for macOS](https://bach.mintlify.dev/docs/guides/macos.md): Build a Mac Setup app in a .dmg from the same bach.toml, test it, sign and notarize it, deploy it to many Macs and release it from GitHub Actions. - [How a setup file works](https://bach.mintlify.dev/docs/concepts/how-it-works.md): What is inside a Bach setup file, what happens step by step during install, update and removal, and why an interrupted update can be undone safely. - [What your users see](https://bach.mintlify.dev/docs/concepts/installer-window.md): Every page of the Bach install window: requirements, license, install, progress, success and errors, plus updates, repair, removal and keyboard use. - [Safety rules](https://bach.mintlify.dev/docs/concepts/safety.md): The rules every Bach installer follows: where it can write, what it removes, when it asks for admin rights and how downloads and secrets are checked. - [Threat model](https://bach.mintlify.dev/docs/concepts/threat-model.md): Who and what Bach trusts, what it protects, and where the known gaps are: feed hosts, downloads, elevated steps, the uninstaller and access keys. - [Feature overview](https://bach.mintlify.dev/docs/features.md): A short list of everything Bach can do, grouped by task, with a link to the guide or reference page for each: building, window, updates and more. - [Why Bach, and when to use something else](https://bach.mintlify.dev/docs/why-bach.md): How Bach differs from NSIS, Inno Setup and WiX, what it is good at, and the cases where another installer tool is the better choice for your app. - [bach.toml reference](https://bach.mintlify.dev/docs/reference/config/overview.md): How bach.toml is structured, which settings are required, the shared rules for text, paths, patterns and options, and a map of every section. - [[app]: name, version, publisher and program](https://bach.mintlify.dev/docs/reference/config/app.md): Every setting of the [app] section: name, version, publisher, executable, id, description, website and icon, with defaults, rules and examples. - [[files]: what goes into the installer](https://bach.mintlify.dev/docs/reference/config/files.md): The source, exclude and allow_secrets settings, how patterns match, which files stop a build as secrets, which cause warnings and the folder rules. - [[installer]: output, location, options and look](https://bach.mintlify.dev/docs/reference/config/installer.md): Every [installer] setting with its type and default: output file, online installer, install folder and scope, options, languages, license and look. - [[uninstall]: user data and feedback](https://bach.mintlify.dev/docs/reference/config/uninstall.md): The data, data_description and feedback_url settings, the full list of folder rules that protect users' files, and the texts the removal window uses. - [[style]: fonts, colors and backgrounds](https://bach.mintlify.dev/docs/reference/config/style.md): The 14 built-in window styles and every [style] setting: fonts, corner radius, background picture, colors and separate light and dark values. - [[layout]: window size, panels and motion](https://bach.mintlify.dev/docs/reference/config/layout.md): The ten layout presets and every [layout] setting: window size, picture panels, spacing, rows, buttons, footer and page animation, with limits. - [[text]: every text in the window](https://bach.mintlify.dev/docs/reference/config/text.md): Every text name the install and removal window uses, its English wording and placeholders, so you can replace any of them in one or several languages. - [[[components]]: optional parts](https://bach.mintlify.dev/docs/reference/config/components.md): Every component setting, how files are assigned, files that need several components, downloaded components and how silent installs pick them. - [[[protocols]] and [[file_types]]: links and files](https://bach.mintlify.dev/docs/reference/config/protocols-and-file-types.md): Register a link scheme like hellonotes:// and the file extensions your app opens, with every setting, refused values and what removal does. - [[[requirements]]: what must be installed first](https://bach.mintlify.dev/docs/reference/config/requirements.md): Every requirement kind and field, how setup detects each one, what happens when something is missing, and which Windows versions Bach supports. - [[[shortcuts]]: extra Start menu shortcuts](https://bach.mintlify.dev/docs/reference/config/shortcuts.md): Add Start menu shortcuts for a second program or for your app with arguments: every setting, and when the shortcuts are added and removed. - [[[context_menu]]: right-click entries](https://bach.mintlify.dev/docs/reference/config/context-menu.md): Add Explorer right-click entries for files, folders, folder backgrounds or file types that open your app, with every setting and Windows 11 notes. - [[[run]]: run a program during setup](https://bach.mintlify.dev/docs/reference/config/run.md): Every [[run]] setting, when steps run, exit codes and timeouts, elevated steps, and what happens when a program fails during install or removal. - [[[registry]]: registry values](https://bach.mintlify.dev/docs/reference/config/registry.md): Write registry values during install with {app} for the install folder, handle 32-bit programs, and see which keys are refused and how removal works. - [[[env]]: environment variables](https://bach.mintlify.dev/docs/reference/config/env.md): Set environment variables during install, with the naming rule that protects other programs, refused names and what happens on update and removal. - [[[services]]: Windows services](https://bach.mintlify.dev/docs/reference/config/services.md): Install Windows services with a machine-wide installer: start types, accounts, restarts, and how services behave during install, update and removal. - [[[firewall]]: Windows Firewall rules](https://bach.mintlify.dev/docs/reference/config/firewall.md): Allow your program or ports through Windows Firewall during a machine-wide install, with every setting and how rules are added and removed. - [[[migrate]]: remove an older installation](https://bach.mintlify.dev/docs/reference/config/migrate.md): Remove an Inno Setup, NSIS or MSI installation of your app before the first Bach install: settings, timeouts and what may run with admin rights. - [[updates]: automatic updates](https://bach.mintlify.dev/docs/reference/config/updates.md): Every [updates] setting with defaults: github, feed, download_url, auto, mirrors, public keys, signer, beta feed and maximum age of feed entries. - [[access]: access keys and encryption](https://bach.mintlify.dev/docs/reference/config/access.md): The encrypt, key_env, get_key_url and send_key settings, key format and limits, how keys are stored and sent, and how the files are encrypted. - [[signing]: how Bach signs your files](https://bach.mintlify.dev/docs/reference/config/signing.md): The program and arguments settings, placeholders, when signing runs, what gets signed, and examples for signtool and cloud signing services. - [[profiles.NAME]: variations of your build](https://bach.mintlify.dev/docs/reference/config/profiles.md): Define other builds such as a company version or portable ZIP: profile settings, how overrides merge, default output names and the limits. - [[arch.arm64]: an ARM64 build](https://bach.mintlify.dev/docs/reference/config/arch.md): Name the ARM64 files and install window program so bach build writes an ARM64 setup file next to the x64 one and lists both in the update feed. - [[macos]: the Mac build](https://bach.mintlify.dev/docs/reference/config/macos.md): Every [macos], [macos.signing], [[macos.agents]] and [[macos.run]] setting, how choices map to macOS, removal behavior and what doesn't apply. - [Variables and placeholders](https://bach.mintlify.dev/docs/reference/variables.md): Every placeholder Bach fills in, from {name} and {version} in output paths and texts to {app} in registry values and {file} in download links. - [The bach command](https://bach.mintlify.dev/docs/reference/cli/overview.md): Every bach command with a short explanation, global flags like --json, exit codes, which commands work on which systems and the update notice. - [bach init](https://bach.mintlify.dev/docs/reference/cli/init.md): bach init writes a commented bach.toml, filled in from your project's files when it recognizes the framework, and adds a release workflow on GitHub. - [bach import](https://bach.mintlify.dev/docs/reference/cli/import.md): bach import turns an Inno Setup or NSIS script into a first bach.toml, and lists everything it couldn't convert so you can finish it by hand. - [bach check](https://bach.mintlify.dev/docs/reference/cli/check.md): bach check reads bach.toml, lists every file and option the installer will have and reports mistakes and warnings without building anything. - [bach build](https://bach.mintlify.dev/docs/reference/cli/build.md): bach build writes the setup file. All flags: output path, platform, profiles, signing, patches, online installer, MSI, ARM64, version and more. - [bach preview](https://bach.mintlify.dev/docs/reference/cli/preview.md): bach preview opens the real install or removal window from your config without installing anything, with flags for theme, language, style and layout. - [bach watch](https://bach.mintlify.dev/docs/reference/cli/watch.md): bach watch keeps the preview window open and reopens it each time you save bach.toml or a file it names, so you see design changes right away. - [bach styles](https://bach.mintlify.dev/docs/reference/cli/styles.md): bach styles lists the 14 built-in styles of the install window, what each looks like and which kind of app it suits, for installer.style. - [bach layouts](https://bach.mintlify.dev/docs/reference/cli/layouts.md): bach layouts lists the ten built-in layouts of the install window, what each looks like and which picture it works best with, for [layout] preset. - [bach inspect](https://bach.mintlify.dev/docs/reference/cli/inspect.md): bach inspect shows what a setup file or an installed uninstall.exe contains: app id, version, files, options, texts, updates and more. - [bach verify](https://bach.mintlify.dev/docs/reference/cli/verify.md): bach verify checks a setup file for damage against the checksums recorded when it was built, without installing it, and reports signatures. - [bach diff](https://bach.mintlify.dev/docs/reference/cli/diff.md): bach diff compares two setup files of one app: files added, removed and changed, changes to Windows, and which files made the app bigger. - [bach test](https://bach.mintlify.dev/docs/reference/cli/test.md): bach test installs your setup file in Windows Sandbox, starts the app, removes it and reports failures and leftovers. Or run it on CI with --here. - [bach doctor](https://bach.mintlify.dev/docs/reference/cli/doctor.md): bach doctor checks the setup program, your config, preview support and signing tools, and says what to fix before a build will work. - [bach feed](https://bach.mintlify.dev/docs/reference/cli/feed.md): bach feed writes latest.json for a finished setup file: all flags for links, release notes, rollouts, patches, ARM64 and macOS, and the format. - [bach feed-key](https://bach.mintlify.dev/docs/reference/cli/feed-key.md): bach feed-key creates the key pair that signs update feeds, writes the private key to a file and prints the public_key line for bach.toml. - [bach winget](https://bach.mintlify.dev/docs/reference/cli/winget.md): bach winget writes the three manifest files that list your setup file in the Windows Package Manager, ready for a pull request to winget-pkgs. - [bach choco](https://bach.mintlify.dev/docs/reference/cli/choco.md): bach choco writes a Chocolatey package that downloads your setup file, checks its SHA-256, installs it silently and can remove it again. - [bach intune](https://bach.mintlify.dev/docs/reference/cli/intune.md): bach intune writes the install and uninstall commands, detection rule and detection script that Microsoft Intune needs for your setup file. - [bach page](https://bach.mintlify.dev/docs/reference/cli/page.md): bach page writes a one-file download page with your app's name, version, size, download button, install steps and SHA-256 for your website. - [bach sign](https://bach.mintlify.dev/docs/reference/cli/sign.md): bach sign signs an already built setup file with the program and arguments from the [signing] section of your bach.toml. Signing is optional. - [bach key](https://bach.mintlify.dev/docs/reference/cli/key.md): bach key makes random access keys for apps with [access], printed or written to a new file, and shows how to pass them to a build in each shell. - [bach profiles](https://bach.mintlify.dev/docs/reference/cli/profiles.md): bach profiles lists the profiles in bach.toml, such as a portable ZIP or a company version, with the file each one writes and any problem. - [bach version](https://bach.mintlify.dev/docs/reference/cli/version.md): bach version lists the version in bach.toml, package.json, Cargo, Tauri and .NET files, or raises it in all of them at once, keeping formatting. - [bach workflow](https://bach.mintlify.dev/docs/reference/cli/workflow.md): bach workflow writes .github/workflows/bach-release.yml, a one-button GitHub release for your app, with options for pinning, winget and macOS. - [bach update](https://bach.mintlify.dev/docs/reference/cli/update.md): bach update installs the newest Bach release after checking its checksum, or tells you which package manager command updates your copy instead. - [Setup file options](https://bach.mintlify.dev/docs/reference/setup/command-line.md): Every command-line option of a Bach setup file: silent installs, folder, options, language, logging, repair, keys, and how mistakes are handled. - [Uninstaller options](https://bach.mintlify.dev/docs/reference/setup/uninstaller.md): Options of the installed uninstall.exe: silent removal, deleting data, checking for and applying updates, update channels and what each returns. - [Exit codes](https://bach.mintlify.dev/docs/reference/setup/exit-codes.md): What exit codes setup files, uninstall.exe and the bach command return, why a silent install fails with 1, and how to read the code and log. - [Environment variables](https://bach.mintlify.dev/docs/reference/setup/environment-variables.md): Every environment variable Bach reads: for builds, signing and update keys, for the install scripts, and for setup files and the preview window. - [Files, folders and registry keys](https://bach.mintlify.dev/docs/reference/setup/files-and-locations.md): Where installed apps, shortcuts, registry entries, logs, downloads and temporary files go on users' computers, and where bach keeps its own files. - [Editor support](https://bach.mintlify.dev/docs/reference/setup/editor-support.md): Get completion, descriptions and typo warnings for bach.toml in VS Code and other editors with Bach's JSON schema, which bach init adds for you. - [Troubleshooting](https://bach.mintlify.dev/docs/resources/troubleshooting.md): Find your problem: build errors, missing files, Windows warnings, installs that fail, updates that don't arrive, leftovers after uninstall and more. - [Why won't my config build?](https://bach.mintlify.dev/docs/troubleshooting/build-errors.md): Fix the errors bach check and bach build report: invalid settings, TOML syntax, secrets in the build folder, runtime download problems and more. - [Why can't Bach find my program or files?](https://bach.mintlify.dev/docs/troubleshooting/missing-files.md): Fix 'there's no such file' errors, wrong source folders and installers that are missing files, by checking paths, excludes and the file list. - [Why does Windows show a security warning?](https://bach.mintlify.dev/docs/troubleshooting/windows-warnings.md): Understand 'Windows protected your PC', 'Unknown publisher', Smart App Control and antivirus alerts for your installer, and what you can do. - [Why does installing fail or the app not start?](https://bach.mintlify.dev/docs/troubleshooting/install-problems.md): Solve failed installs, 'is still open' and 'file in use' errors, missing requirements, downgrades, admin prompts and apps that don't start. - [Why aren't automatic updates working?](https://bach.mintlify.dev/docs/troubleshooting/updates.md): Work through why installed apps don't update: feed address, publishing, versions, signatures, rollouts, scheduled task and running apps. - [Why are files left after uninstalling?](https://bach.mintlify.dev/docs/troubleshooting/uninstall.md): Understand which files the uninstaller keeps on purpose, how to let users delete their data, and what to do when removal fails. - [Frequently asked questions](https://bach.mintlify.dev/docs/resources/faq.md): Short answers about administrator rights, installing for everyone, file size, updates, user data, signing, platforms, languages and licensing. - [Common mistakes](https://bach.mintlify.dev/docs/resources/common-mistakes.md): The mistakes that cause trouble later: changing the app id or scope, packaging the wrong folder, forgetting the feed after signing and others. - [Known limitations](https://bach.mintlify.dev/docs/resources/limitations.md): What Bach can't do today: drivers, install scripts, small stubs, MSI and macOS gaps, background updates for all-user installs and more. - [Getting help and reporting bugs](https://bach.mintlify.dev/docs/resources/getting-help.md): Where to ask for help with Bach, how to report a bug so it can be fixed quickly, and how to report security problems privately. - [Changelog](https://bach.mintlify.dev/docs/resources/changelog.md): Release notes for every Bach version, newest first, with what is new, what was fixed and what was improved in each release since 0.1.0. - [Security policy](https://bach.mintlify.dev/docs/resources/security.md): How to report a security problem in Bach privately, which versions get fixes, what counts as a vulnerability and what doesn't. - [Contribute to Bach](https://bach.mintlify.dev/docs/resources/contributing.md): How to help: report bugs, improve translations and docs, or send code, how to build Bach and run its checks, and how to write commits. - [Use Bach with coding agents](https://bach.mintlify.dev/docs/resources/agents.md): Install the Bach skill so coding agents such as Claude Code or Codex can package your app, and the safety habits the skill asks them to follow. - [Benchmarks: Bach, Inno Setup, NSIS and WiX](https://bach.mintlify.dev/docs/resources/benchmarks.md): Install, update and removal times, file sizes and failure behavior of Bach, Inno Setup, NSIS and WiX (MSI), measured on one 355 MB Electron app. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.