How to find out if the string is AUMID for the installed UWP application?

Is there a .NET library to check if the AUMID string is for an installed UWP application or not?

Example if user enters

Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge

How can I make sure that there is actually a UWP application with AUMID installed?

+4
source share
1 answer

Well, AUMID for UWP is in FamilyName format! AppID, as described, for example, here .

, AUMID UWP, . UWP- AUMID , , , , , , .

API, , Windows.Management.Deployment.PackageManager. , . 10.0.16257.0 SDK Windows.ApplicationModel.Core.AppListEntry AppUserModelId. , .

PowerShell, , , , . Microsoft UWP- AUMID:

$installedapps = get-AppxPackage

$aumidList = @()
foreach ($app in $installedapps)
{
    foreach ($id in (Get-AppxPackageManifest $app).package.applications.application.id)
    {
        $aumidList += $app.packagefamilyname + "!" + $id
    }
}

$aumidList

(From: User Application )

, .

+3

Source: https://habr.com/ru/post/1684697/


All Articles