Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Feb 7, 2020
1 parent fe7e920 commit 71bdcf2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions WindowsGSM-Updater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,25 @@ static void Main(string[] args)
#endregion

#region Delete and Download

if (forceupdate)
{
Console.WriteLine();
Console.WriteLine("Waiting WindowsGSM.exe exit...");

while (File.Exists(_wgsmPath))
{
try
{
File.Delete(_wgsmPath);
}
catch
{
//ignore
}
}
}

Console.WriteLine();
Console.WriteLine("Deleting WindowsGSM.exe...");
DeleteWindowsGSM().Wait();
Expand Down

0 comments on commit 71bdcf2

Please sign in to comment.