diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs index deccc60..4628928 100644 --- a/UWPHook/GamesWindow.xaml.cs +++ b/UWPHook/GamesWindow.xaml.cs @@ -167,7 +167,7 @@ namespace UWPHook //Remove end lines from the String and split both values, I split the appname and the AUMID using | //I hope no apps have that in their name. Ever. var valor = app.Replace("\r\n", "").Split('|'); - if (!String.IsNullOrEmpty(valor[0])) + if (!String.IsNullOrWhiteSpace(valor[0]) && !valor[0].Contains("ms-resource")) { Application.Current.Dispatcher.BeginInvoke((Action)delegate () { diff --git a/UWPHook/Resources/GetAUMIDScript.txt b/UWPHook/Resources/GetAUMIDScript.txt index 61ab628..0f078b9 100644 --- a/UWPHook/Resources/GetAUMIDScript.txt +++ b/UWPHook/Resources/GetAUMIDScript.txt @@ -4,9 +4,12 @@ $aumidList = @() foreach ($app in $installedapps) { try { - foreach ($id in (Get-AppxPackageManifest $app).package.applications.application.id) + foreach ($appx in (Get-AppxPackageManifest $app)) { - $aumidList += $app.name + "|" + $app.packagefamilyname + "!" + $id + ";" + + $aumidList += $appx.Package.Applications.Application.VisualElements.DisplayName + " | "+ + $app.packagefamilyname + "!" + $appx.package.applications.application.id + ";" + } } catch { $ErrorMessage = $_.Exception.Message @@ -14,4 +17,4 @@ foreach ($app in $installedapps) } } -$aumidList \ No newline at end of file +$aumidList; \ No newline at end of file