How do I properly execute or call a Msys2 Mingw64 application from within Powershell 7+ (Outside of bash)?

259 views Asked by At

I downloaded and installed MSYS2, as well as some packages via Pacman. I also installed exiv2 from here. I am developing a Pwsh module that will be manipulating metadata, and I want to call exiv2 from within Pwsh.

I tried copying exiv2.exe and libexiv2.dll from C:\msys64\mingw64\bin to a directory that I have added to PATH, but it doesn't seem to work outside of the MINGW64 shell (exiv2 -h prints nothing). So I guess I have to invoke it some other way, unless I'm missing something important.

What is the procedure for invoking this outside of bash? Do I have to invoke it by first calling bash / mintty in Pwsh, or is there a way to directly get what I want?

Any help greatly appreciated!

0

There are 0 answers