mirror of
https://gitlab.com/cleanflash/installer.git
synced 2026-08-13 10:51:37 +08:00
flash: Fix protected mode issues and invalid registry entires
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user