Fix reinstallation bug (#791)

This commit is contained in:
pizzaboxer 2023-11-03 09:43:30 +00:00
parent c7f10c2a8b
commit c4d3c5b64f
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -518,7 +518,10 @@ namespace Bloxstrap
// in case the user is reinstalling // in case the user is reinstalling
if (File.Exists(Paths.Application) && App.IsFirstRun) if (File.Exists(Paths.Application) && App.IsFirstRun)
{
Filesystem.AssertReadOnly(Paths.Application);
File.Delete(Paths.Application); File.Delete(Paths.Application);
}
// check to make sure bootstrapper is in the install folder // check to make sure bootstrapper is in the install folder
if (!File.Exists(Paths.Application) && Environment.ProcessPath is not null) if (!File.Exists(Paths.Application) && Environment.ProcessPath is not null)