msys2-installer
msys2-installer copied to clipboard
Impossible to get `InstallLocation` due to random key
Trying to get MSYS2 InstallLocation with
Get-ItemProperty (Resolve-Path Registry::'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\MSYS*') | Select-Object -ExpandProperty DisplayVersion
is simple impossible since the key is named as {85409743-9467-48d0-b0e8-7f8a1cbda52e}, which seems to be random.
Would be nice to be able to get MSYS2 install path to make portable scripts