> ## 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 Windows show a security warning?

> Understand 'Windows protected your PC', 'Unknown publisher', Smart App Control and antivirus alerts for your installer, and what you can do.

Windows warns people about programs it doesn't know yet. This page explains which warning means what and how to reduce them.

## "Windows protected your PC"

**What it is:** Microsoft Defender SmartScreen. It appears for files downloaded from the internet that aren't signed, or whose publisher has little reputation yet.

**What users can do:** click **More info**, then **Run anyway**, if they trust where the file came from.

**What you can do:**

1. [Sign your setup file](/docs/guides/signing.md). It then shows your name instead of "Unknown publisher".
2. Keep using the same certificate, so its reputation builds up. A new certificate can still see warnings for a while.
3. Publish from a stable, trustworthy address.

**Check:** right-click the file, choose **Properties**, and look for the **Digital Signatures** tab. Or run `signtool verify /pa <file>`.

## The administrator prompt says "Unknown publisher"

Your setup file needs administrator rights (`scope = "machine"` or an elevated step) and isn't signed. Sign it.

## An app is blocked by Smart App Control

On Windows 11, Smart App Control checks every program that starts, including the ones your installer unpacked. Signing only the setup file doesn't cover them: sign your `.exe` and `.dll` files in your build, before Bach packs them.

## Antivirus quarantines the file

See [Antivirus warnings](/docs/guides/antivirus.md). In short: sign, report the false positive to the vendor, and on your build computer exclude only your build output folder if needed.

## The uninstaller isn't signed

That's expected. `uninstall.exe` is written on the user's computer without a signature, because a signature only matches the exact file it was made for.


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