processes: Only kill processes that contain loaded Flash modules

This commit is contained in:
Disyer
2022-06-17 12:44:02 +03:00
parent 3a2615c988
commit 420aa8ac66
7 changed files with 147 additions and 58 deletions
+2 -2
View File
@@ -95,10 +95,10 @@ If you ever change your mind, check out Clean Flash Player's website!";
browsers.Add("Internet Explorer");
}
text = string.Format("You are about to install Clean Flash Player.\nPlease close all browsers, including Google Chrome, Mozilla Firefox and Internet Explorer.\n\nThe installer will close all browser windows, uninstall previous versions of Flash Player and\nFlash Center, and install Flash for {0}.", JoinStringsWithAnd(browsers));
text = string.Format("You are about to install Clean Flash Player.\nPlease close any browser windows running Flash content before you continue.\n\nThe installer will close all browser windows running Flash, uninstall previous versions of Flash Player and\nFlash Center, and install Flash for {0}.", JoinStringsWithAnd(browsers));
nextButton.Text = "INSTALL";
} else {
text = "You are about to uninstall Clean Flash Player.\nPlease close all browsers, including Google Chrome, Mozilla Firefox and Internet Explorer.\n\nThe installer will completely remove all versions of Flash Player from this computer,\nincluding Clean Flash Player and older versions of Adobe Flash Player.";
text = "You are about to uninstall Clean Flash Player.\nPlease close any browser windows running Flash content before you continue.\n\nThe installer will completely remove all versions of Flash Player from this computer,\nincluding Clean Flash Player and older versions of Adobe Flash Player.";
nextButton.Text = "UNINSTALL";
}
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CleanFlashInstaller {
public class Installer {
public static void RegisterActiveX(string filename) {
Directory.SetCurrentDirectory(Path.GetDirectoryName(filename));
ExitedProcess process = ProcessRunner.RunProcess(
ExitedProcess process = ProcessUtils.RunProcess(
new ProcessStartInfo {
FileName = "regsvr32.exe",
Arguments = "/s " + Path.GetFileName(filename),