mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
I HATE WINDOWS
This commit is contained in:
parent
197429dbf9
commit
680f6dfda3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user