Skip to main content
The Windows registry is a database where programs keep settings. [[registry]] writes a value when your app is installed, for example so another program can find where it is. Each block is one value. Values go to the current user (HKCU), or the computer (HKLM) for a machine-wide install.
bach.toml

32-bit programs

Windows redirects a 32-bit program’s reads of HKLM\Software\... to a separate area (WOW6432Node). So in a machine-wide install, values a 32-bit program reads need view = "32", or "both". Bach warns when your program is 32-bit, the install is machine-wide and a value has no view. You can’t write WOW6432Node into the key yourself.

Refused keys

Keys belonging to Windows, other programs or Bach: Software\Classes, Software\Policies, Software\Wow6432Node, Software\Bach, and everything under Software\Microsoft, Google, Mozilla, MozillaPlugins, Chromium, RegisteredApplications, Clients and ODBC. For file types and links, use [[protocols]] and [[file_types]]. bach check warns if the key isn’t under a folder named after your publisher, app name or id, which usually means a typo. The same key and name can only be set once.

Updates and removal

Updates write the values again and remove values the new version no longer lists. Uninstalling removes a value only while it still holds exactly what setup wrote; changed values stay. Empty keys are removed. bach inspect shows values as Registry. Windows only.