public async Task MakeUpdate() { _notifier.AddToLog("Begin..."); var releaseInfo = await _syrupDowloader.GetNewestSyrupFileInfo(_global.Config.SyrupReleaseInfoUrl); if (!IsUpdateNeeded(_global.Registry.CurrentAssemblyVersion, releaseInfo)) { await MakeExit(); return; } var tmpDir = GetTmpDir(); var zipFile = await DownloadZipFile(tmpDir, releaseInfo); var newSyrupFile = ExtractZipFile(zipFile); var oldSyrupBeckupFile = await MakeBeckupOldSyrup(_global.Registry.SyrupAppPath); await SetNewVersion(newSyrupFile, _global.Registry.SyrupAppPath); await Clean(tmpDir, oldSyrupBeckupFile); await MakeExit(); }