Identify the Exact WinGet Package and Source Before Installing an App
A familiar app name can produce several package results. Before installing one, establish which publisher, package identifier and source match the application you intended to obtain. A search result’s position is not a reason to choose it.
Start from the application’s trusted publisher information and your organisation’s approved software route. If the supplier provides a specific package identifier, keep it available for comparison.
Narrow the search deliberately
WinGet normally performs a case-insensitive substring search. Its --id option restricts the searched field, --source selects a source, and --exact requires an exact, case-sensitive match. Wildcard-style query syntax is not supported.
For example, this command searches the named source for an exact identifier; it does not install the application:
winget search --id Microsoft.VisualStudioCode --exact --source winget
Use the identifier and source appropriate to your actual approved application. If there is no result, recheck the spelling, case and intended source. Removing all the filters merely to obtain a hit can change which package you are considering.
Inspect the chosen result
Follow with a metadata check using the same identity:
winget show --id Microsoft.VisualStudioCode --exact --source winget
Review the publisher, homepage, version and installer details that are present. Microsoft notes that show displays submitted metadata; missing fields are not silently verified. Its installer information also depends on the supplied arguments and WinGet’s choice for the current device.
If a required version matters, inspect the available versions and confirm the supplier’s support position. Do not infer that the latest result is appropriate for an old project merely because it is easiest to find.
Record the accepted package ID, source and intended version in the installation plan. Resolve inconsistent publisher or destination information through the trusted supplier before proceeding.
The completed task is an identified candidate. Downloading, accepting licences and installing it remain subsequent actions with their own requirements. Keep this identification step reusable so another person can understand exactly which application was selected.
Sources: Microsoft WinGet search; Microsoft WinGet show.