msys2-installer icon indicating copy to clipboard operation
msys2-installer copied to clipboard

Impossible to get `InstallLocation` due to random key

Open brunvonlope opened this issue 1 year ago • 0 comments

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.

image


Would be nice to be able to get MSYS2 install path to make portable scripts

brunvonlope avatar Sep 13 '24 00:09 brunvonlope