In output file names
Used ininstaller.output, installer.online_output, profiles.NAME.output and macos.output:
Characters that file names can’t contain, such as
: or /, become -.
bach.toml
In window texts
[text] entries can use {name}, {version} and {publisher}. Some built-in texts also fill their own placeholders, such as {old_version} or {path}; you can use them in your replacement for that same text. install_subtitle can also use {description}. A placeholder a text can’t fill is an error. [text] lists them per text.
In update and download links
In registry values and environment variables
Used in
[[registry]] values of type string or expand and in [[env]] values. In an MSI, {app} ends with a backslash.
bach.toml
%VARIABLES% in an expand registry value or an environment variable are left for Windows to fill in when read.
In signing arguments
In data folders and requirement paths
uninstall.data entries start with %APPDATA%, %LOCALAPPDATA% or %USERPROFILE%. A file requirement’s path can use Windows environment variables such as %SystemRoot%.
In menu entries
[[context_menu]] arguments can use "%1" for the clicked file or folder, and "%V" for the open folder in background entries.
Not replaced
[[run]] and [[services]] arguments are passed to your program exactly as written.