Including valid package information when path is invalid. This is needed because the path will be invalid when uninstalling an application, but we still need the other information to remove it from the currently indexed list of uwp/packaged applications. (#5373)

This commit is contained in:
ryanbodrug-microsoft
2020-07-31 12:33:05 -07:00
committed by GitHub
parent d9fd967c48
commit 4da8aab44f

View File

@@ -41,7 +41,13 @@ namespace Microsoft.Plugin.Program.Programs
catch (Exception e) when (e is ArgumentException || e is FileNotFoundException)
{
ProgramLogger.LogException($"PackageWrapper", "GetWrapperFromPackage", "package.InstalledLocation.Path", $"Exception {package.Id.Name}", e);
return new PackageWrapper();
return new PackageWrapper(
package.Id.Name,
package.Id.FullName,
package.Id.FamilyName,
package.IsFramework,
package.IsDevelopmentMode,
string.Empty);
}
return new PackageWrapper(