Skip to main content
Two small tables connect your app to Windows: [[protocols]] registers a link scheme such as myapp://, and [[file_types]] lists files your app can open. Both are registered for the current user only.

[[protocols]]

Links like myapp://open?file=x start your app with the link as its first argument.
bach.toml
Schemes that belong to Windows or browsers (http, file, ms-... and so on) are refused. If another program already owns the scheme, setup leaves it alone.

[[file_types]]

Files your app opens. They are listed under Open with, and your app becomes the default only for types no other program opens yet, so installing your app never takes files away from another one.
bach.toml
Types that run code (.exe, .bat, .ps1, .lnk and similar) are refused.

Removal

The registry keys Bach creates carry a BachApp mark. On uninstall only keys with that mark are removed. Keys without it belong to another program and are never changed or deleted. See Integration for the guide.