From 84b26a2295b2385e0f38ec7268aa36cc7ac2aae5 Mon Sep 17 00:00:00 2001 From: Vichingo455 Date: Mon, 23 Jun 2025 17:31:39 +0200 Subject: [PATCH] v1.6 --- patch-seb/Form1.cs | 4 +++- patch-seb/OfflinePatcher.cs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/patch-seb/Form1.cs b/patch-seb/Form1.cs index faf9f5a..7b52208 100644 --- a/patch-seb/Form1.cs +++ b/patch-seb/Form1.cs @@ -22,6 +22,7 @@ namespace patch_seb public static bool alreadyPatched = false; public static string SEBPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\SafeExamBrowser\Application\"; public static int something = 0; + public static bool isCert; public Form1() { @@ -97,6 +98,7 @@ namespace patch_seb } } isBackup = checkBox1.Checked; + isCert = checkBox2.Checked; if (!started) { started = true; @@ -172,7 +174,7 @@ namespace patch_seb File.WriteAllBytes(SEBPath + @"SafeExamBrowser.UserInterface.Desktop.dll", Resources.SafeExamBrowser_UserInterface_Desktop1); File.WriteAllBytes(SEBPath + @"SafeExamBrowser.UserInterface.Mobile.dll", Resources.SafeExamBrowser_UserInterface_Mobile1); } - if (checkBox2.Checked) + if (isCert) { File.WriteAllText(Environment.GetFolderPath(Environment.SpecialFolder.Windows) + @"\Temp\SEB.reg", Resources.cert); ProcessStartInfo info = new ProcessStartInfo diff --git a/patch-seb/OfflinePatcher.cs b/patch-seb/OfflinePatcher.cs index b040d2c..bf7d0ac 100644 --- a/patch-seb/OfflinePatcher.cs +++ b/patch-seb/OfflinePatcher.cs @@ -23,6 +23,7 @@ namespace patch_seb public static bool is64bits = false; public static string SEBPath = ""; public static int something = 0; + public static bool isCert; public OfflinePatcher() { InitializeComponent(); @@ -129,6 +130,7 @@ namespace patch_seb } } isBackup = checkBox1.Checked; + isCert = checkBox2.Checked; if (!started) { started = true; @@ -225,7 +227,7 @@ namespace patch_seb File.WriteAllBytes(SEBPath + @"SafeExamBrowser.UserInterface.Desktop.dll", Resources.SafeExamBrowser_UserInterface_Desktop1); File.WriteAllBytes(SEBPath + @"SafeExamBrowser.UserInterface.Mobile.dll", Resources.SafeExamBrowser_UserInterface_Mobile1); } - if (checkBox2.Checked) + if (isCert) { // Load offline registry ProcessStartInfo load = new ProcessStartInfo