diff --git a/Bloxstrap/Installer.cs b/Bloxstrap/Installer.cs index f63df61..3547aeb 100644 --- a/Bloxstrap/Installer.cs +++ b/Bloxstrap/Installer.cs @@ -565,13 +565,19 @@ namespace Bloxstrap if (Utilities.CompareVersions(existingVer, "2.8.2") == VersionComparison.LessThan) { - try + string robloxDirectory = Path.Combine(Paths.Base, "Roblox"); + + if (Directory.Exists(robloxDirectory)) { - Directory.Delete(Path.Combine(Paths.Base, "Roblox"), true); - } - catch (Exception ex) - { - App.Logger.WriteException(LOG_IDENT, ex); + try + { + Directory.Delete(robloxDirectory, true); + } + catch (Exception ex) + { + App.Logger.WriteLine(LOG_IDENT, "Failed to delete the Roblox directory"); + App.Logger.WriteException(LOG_IDENT, ex); + } } }