Skip to main content
bach test tries your setup file the way a user would: it installs it silently, starts the app, removes it and reports what failed and what was left behind. By default it does this in Windows Sandbox, a temporary copy of Windows, so your computer isn’t changed.
Exit code 0 means every check passed. --json gives passed, steps and left_behind.

Requirements

Windows Sandbox is part of Windows 10 and 11 Pro, Enterprise and Education, not Home. Turn it on under “Turn Windows features on or off”. An installer that needs administrator rights shows the prompt inside the sandbox. Apps with an access key can’t be tested, because a silent install can’t type a key.

Without a sandbox

--here runs the same test on the computer itself. It really installs and removes the app, so only use it on CI or a virtual machine. It refuses to run if the app is already installed.
GitHub’s Windows runners can run --here, including machine-wide installers, since the job already has administrator rights.