I HATE WINDOWS

This commit is contained in:
pizzaboxer 2023-08-31 10:07:50 +01:00
parent 197429dbf9
commit 680f6dfda3
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -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);