Fix Auto-Updater Not Working If .bak File Exists
This commit is contained in:
parent
846a477587
commit
922528c61c
@ -68,6 +68,9 @@ namespace qtc_net_client_2.Services
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
// if bak file already exists, delete it
|
||||||
|
if (File.Exists($"/{updateInfo.ClientFileName}.bak")) File.Delete($"/{updateInfo.ClientFileName}.bak");
|
||||||
|
|
||||||
// move old client to backup file
|
// move old client to backup file
|
||||||
File.Move($"./{updateInfo.ClientFileName}", $"{updateInfo.ClientFileName}.bak");
|
File.Move($"./{updateInfo.ClientFileName}", $"{updateInfo.ClientFileName}.bak");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user