mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix reinstallation bug (#791)
This commit is contained in:
parent
c7f10c2a8b
commit
c4d3c5b64f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user