From c4d3c5b64f56257de865403aaee7792da5c3bfe4 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Fri, 3 Nov 2023 09:43:30 +0000 Subject: [PATCH] Fix reinstallation bug (#791) --- Bloxstrap/Bootstrapper.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 1699819e..8e06f739 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -518,7 +518,10 @@ public static void CheckInstall() // in case the user is reinstalling if (File.Exists(Paths.Application) && App.IsFirstRun) + { + Filesystem.AssertReadOnly(Paths.Application); File.Delete(Paths.Application); + } // check to make sure bootstrapper is in the install folder if (!File.Exists(Paths.Application) && Environment.ProcessPath is not null)