diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index d68c50c..c0174b1 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -498,7 +498,10 @@ namespace Bloxstrap // 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) @@ -1182,6 +1185,7 @@ namespace Bloxstrap Directory.CreateDirectory(Path.GetDirectoryName(fileVersionFolder)!); + Filesystem.AssertReadOnly(fileVersionFolder); File.Copy(fileModFolder, fileVersionFolder, true); Filesystem.AssertReadOnly(fileVersionFolder);