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:
parent
d9fd967c48
commit
4da8aab44f
1 changed files with 7 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue