From 5f12c5e5c01a7ef4ddfd80be5c8bca5a9bb7c200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20R=C3=A5gstad?= <41281398+WilliamRagstad@users.noreply.github.com> Date: Thu, 7 May 2020 14:39:47 +0200 Subject: [PATCH] Catch errors when extracting updater.exe --- CSGO Font Manager/Form1.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CSGO Font Manager/Form1.cs b/CSGO Font Manager/Form1.cs index ad25ff1..39ecb64 100644 --- a/CSGO Font Manager/Form1.cs +++ b/CSGO Font Manager/Form1.cs @@ -176,8 +176,13 @@ private static bool UpdaterIsRunning() private static void ExtractUpdater() { if (UpdaterIsRunning()) return; - // Extract updater - File.WriteAllBytes(UpdaterFile, Properties.Resources.updater); + + try + { + // Extract updater + File.WriteAllBytes(UpdaterFile, Properties.Resources.updater); + } + catch { } } private static void SetupFolderStructure()