diff --git a/DNN Platform/Dnn.AuthServices.Jwt/Library.build b/DNN Platform/Dnn.AuthServices.Jwt/Library.build
index e6450070b98..e6bc4c9dcb0 100644
--- a/DNN Platform/Dnn.AuthServices.Jwt/Library.build
+++ b/DNN Platform/Dnn.AuthServices.Jwt/Library.build
@@ -4,7 +4,7 @@
- zip
+ resources
Dnn.Jwt
DnnJwtAuth
$(WebsitePath)\DesktopModules\AuthenticationServices\JWTAuth
diff --git a/DNN Platform/Library/Services/Upgrade/Upgrade.cs b/DNN Platform/Library/Services/Upgrade/Upgrade.cs
index 022a83f113e..f491d5c7d45 100644
--- a/DNN Platform/Library/Services/Upgrade/Upgrade.cs
+++ b/DNN Platform/Library/Services/Upgrade/Upgrade.cs
@@ -2777,6 +2777,7 @@ private static void ParsePackagesFromApplicationPath(IEnumerable package
continue;
}
+ var isInstalled = false;
PackageController.ParsePackage(file, installPackagePath, packages, invalidPackages);
if (packages.ContainsKey(file))
{
@@ -2787,6 +2788,7 @@ private static void ParsePackagesFromApplicationPath(IEnumerable package
Null.NullInteger,
p => p.Name.Equals(package.Name, StringComparison.OrdinalIgnoreCase)
&& p.PackageType.Equals(package.PackageType, StringComparison.OrdinalIgnoreCase));
+ isInstalled = installedPackage != null;
if (packages.Values.Count(p => p.FriendlyName.Equals(package.FriendlyName, StringComparison.OrdinalIgnoreCase)) > 1
|| installedPackage != null)
@@ -2818,7 +2820,7 @@ private static void ParsePackagesFromApplicationPath(IEnumerable package
}
}
- if (extension != ".zip")
+ if (extension != ".zip" && !isInstalled)
{
optionalPackages.Add(file);
}