Try to fix updater issues

This commit is contained in:
KillzXGaming 2019-04-10 18:48:50 -04:00
parent a21eead9da
commit 92d597f7f4
3 changed files with 3 additions and 0 deletions

Binary file not shown.

View file

@ -78,7 +78,10 @@ namespace Updater
continue; continue;
if (File.Exists(Path.Combine(folderDir, Path.GetFileName(file)))) if (File.Exists(Path.Combine(folderDir, Path.GetFileName(file))))
{
File.SetAttributes(file, FileAttributes.Normal);
File.Delete(Path.Combine(folderDir, Path.GetFileName(file))); File.Delete(Path.Combine(folderDir, Path.GetFileName(file)));
}
File.Move(file, Path.Combine(folderDir, Path.GetFileName(file))); File.Move(file, Path.Combine(folderDir, Path.GetFileName(file)));
} }
} }