From 662a5a164b67a8ae8cf427ea84dfb339aae620ea Mon Sep 17 00:00:00 2001 From: pointfeev Date: Sat, 3 Jun 2023 18:21:42 -0400 Subject: [PATCH] fix common incorrect executable detection --- CreamInstaller/Resources/Resources.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CreamInstaller/Resources/Resources.cs b/CreamInstaller/Resources/Resources.cs index 123e985..bc31e28 100644 --- a/CreamInstaller/Resources/Resources.cs +++ b/CreamInstaller/Resources/Resources.cs @@ -522,7 +522,7 @@ internal static class Resources private static bool IsCommonIncorrectExecutable(this string rootDirectory, string path) { - string subPath = path[rootDirectory.Length..].ResolvePath(); + string subPath = path[rootDirectory.Length..].ResolvePath()?.ToUpperInvariant(); return subPath is null || subPath.Contains("SETUP") || subPath.Contains("REDIST") || subPath.Contains("SUPPORT") || subPath.Contains("CRASH") && (subPath.Contains("PAD") || subPath.Contains("REPORT")) || subPath.Contains("HELPER") || subPath.Contains("CEFPROCESS") || subPath.Contains("ZFGAMEBROWSER") || subPath.Contains("MONO") || subPath.Contains("PLUGINS")