Add a requirement
bach.toml
--skip-requirements installs anyway.
Requirements are only checked. Setup doesn’t install anything for them and needs no administrator rights to look.
The kinds of requirement
Bach knows a name and download link for
webview2, dotnet, vcredist and windows. You can replace them with your own name and url. For file and registry you have to give both. url must start with https://.
Examples
A WPF app that isn’t published self-contained:bach.toml
bach.toml
bach.toml
%VARIABLES% are filled in:
bach.toml
Installing the requirement for the user
If you’d rather ship the runtime’s installer inside your app and run it, see Run programs during setup. That’s useful when your users may be offline.Test it
bach preview shows your install page, but it can’t show you what happens on a computer that lacks the requirement. Test the real installer on a clean computer or in Windows Sandbox, which has none of your development tools.