flash: Fix protected mode issues and invalid registry entires

This commit is contained in:
Daniel
2021-06-21 04:01:03 +03:00
parent 606d5c1e47
commit 8bb46337e1
6 changed files with 18 additions and 16 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
namespace CleanFlashCommon {
public class RegistryManager {
@@ -9,7 +10,7 @@ namespace CleanFlashCommon {
registryContents = "Windows Registry Editor Version 5.00\n\n" + SystemInfo.FillString(registryContents);
string filename = Path.GetTempFileName();
File.WriteAllText(filename, registryContents);
File.WriteAllText(filename, registryContents, Encoding.Unicode);
Directory.SetCurrentDirectory(Path.GetDirectoryName(filename));
+2 -1
View File
@@ -21,7 +21,8 @@ namespace CleanFlashCommon {
{ "${FLASH_64_PATH}", flash64Path.Replace(@"\", @"\\") },
{ "${VERSION}", version },
{ "${VERSION_PATH}", versionPath },
{ "${VERSION_COMMA}", versionComma }
{ "${VERSION_COMMA}", versionComma },
{ "${ARCH}", Environment.Is64BitOperatingSystem ? "64" : "32" }
};
public static string GetSystem32Path() {
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CleanFlashCommon {
"flashplayerapp", "flashplayer_sa", "flashplayer_sa_debug",
// Browsers that might be using Flash Player right now
"opera", "iexplore", "chrome", "chromium", "brave", "vivaldi", "basilisk", "msedge",
"seamonkey", "palemoon", "plugin-container"
"seamonkey", "palemoon", "k-meleon", "plugin-container"
};
static Uninstaller() {