This commit is contained in:
JustArchi
2016-09-30 01:45:42 +02:00
parent a48ec88e2f
commit b0b13773f5

View File

@@ -37,6 +37,11 @@ namespace ArchiSteamFarm {
internal static async Task CheckForUpdate(bool updateOverride = false) {
string exeFile = Assembly.GetEntryAssembly().Location;
if (string.IsNullOrEmpty(exeFile)) {
Logging.LogNullError(nameof(exeFile));
return;
}
string oldExeFile = exeFile + ".old";
// We booted successfully so we can now remove old exe file