From 10ab1a09bfa513a2a86ad66142a9c0d661419aaf Mon Sep 17 00:00:00 2001 From: Brian Lima Date: Mon, 10 Oct 2016 09:23:06 -0300 Subject: [PATCH] Ignoring appx packages without manifest --- UWPHook/Resources/GetAUMIDScript.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/UWPHook/Resources/GetAUMIDScript.txt b/UWPHook/Resources/GetAUMIDScript.txt index 7813105..61ab628 100644 --- a/UWPHook/Resources/GetAUMIDScript.txt +++ b/UWPHook/Resources/GetAUMIDScript.txt @@ -3,10 +3,15 @@ $aumidList = @() foreach ($app in $installedapps) { -    foreach ($id in (Get-AppxPackageManifest $app).package.applications.application.id) -    { -        $aumidList += $app.name + "|" + $app.packagefamilyname + "!" + $id + ";" -    } + try { + foreach ($id in (Get-AppxPackageManifest $app).package.applications.application.id) + { + $aumidList += $app.name + "|" + $app.packagefamilyname + "!" + $id + ";" + } + } catch { + $ErrorMessage = $_.Exception.Message + $FailedItem = $_.Exception.ItemName + } } $aumidList \ No newline at end of file