<p>Then open <code>vcruntime\AttachedContainer\packages\vcRuntimeMinimum_amd64\cab1.cab</code> and copy all the files into the KeePassXC directory.</p>
<p>Download and run the <code>msys2-x86_64-*.exe</code> installer.
Install to a directory that you have write access to, e.g. under <code>%USERPROFILE%\opt\msys64</code>.</p>
<p>Run the <em>MSYS2 UCRT64</em> launcher.
<em>UCRT64</em> is Microsoft's <em>Universal C Runtime Library</em> and is the preferred build environment on modern (Windows 10 and above) Windows operating systems.
For more information, see <ahref="https://www.msys2.org/docs/environments/">Environments</a>.</p>
<p>Update the MSYS2 environment with <code>pacman -Syu</code> and then install the toolchain package group with <code>pacman -S mingw-w64-ucrt-x86_64-toolchain</code>.
This will install all of the build tools including <code>gcc</code>, <code>g++</code>, and <code>mingw32-make</code>, plus the <code>libstdc</code> and <code>libstdc++</code> libraries.</p>
<p>Finally, add <code>%USERPROFILE%\opt\msys64\ucrt64\bin</code> to the <code>%PATH%</code> environment variable.</p>
<p>A profile can be added to Windows Terminal with the following settings:</p>
<p>The Windows built-in ssh-agent needs admin to be started, so we have to use <code>PAGEANT.EXE</code> instead.</p>
<p>The <ahref="https://the.earth.li/~sgtatham/putty/latest/w64/putty.zip">ZIP file</a> can be extracted to any directory.</p>
<p>Running <code>PAGEANT.EXE --openssh-config %USERPROFILE%\.ssh\config.d\pageant.config</code> will write an OpenSSH config file with the path to the pipe used for communication.
This can be used by the built-in Windows OpenSSH client by adding an <code>Include config.d\pageant.config</code> line to <code>%USERPROFILE%\.ssh\config</code>.</p>
<p>The installer can run without admin permissions, or the ZIP version can run from any directory.</p>
<p>The following can be put into a batch file named <code>vim.cmd</code> in the <code>%PATH%</code> to make it easier to launch without pulling in all the other programs:</p>