Find Windows App install location with winget
Regardless of how an App is installed, whether through WinGet, the Microsoft Store, or a direct download, WinGet can be used to find the program install location on disk. For example, to find the install location of the Microsoft Edge browser:
winget list Microsoft.Edge --detailsprogramatically like:
(winget list Microsoft.Edge --details | Select-String -Pattern 'Installed Location:\s*(.+)').Matches.Groups[1].Value.Trim()The results include “InstalledLocation” which for this example may be examined like:
ls ${Env:ProgramFiles(x86)}/Microsoft/Edge/Applicationwith results including the Edge executable msedge.exe.