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 --details

programatically 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/Application

with results including the Edge executable msedge.exe.

Apps with unlisted install locations

Some apps may not show their install location directly with winget list --details. Winget lists its directories by:

winget --info

List all apps installed via winget:

winget list --source winget

Look under “Portable Links Directory” locations to find where portable apps are linked.

The program may also be installed under $Env:ProgramFiles or $Env:ProgramFiles(x86).