protected override void OnDoWork(DoWorkEventArgs e) { base.OnDoWork(e); LocalManifest = FileUtil.ReadManifest(_manifestPath); RemoteManifest = FileUtil.ReadManifest(LocalManifest.ReleaseUrl + "/" + Manifest.ManifestFileName); if (LocalManifest.CompareTo(RemoteManifest) != 0) { HasNewVersion = true; if (!string.IsNullOrEmpty(_tempDir)) { if (!Directory.Exists(_tempDir)) { Directory.CreateDirectory(_tempDir); } RemoteManifest.SaveManifest(Path.Combine(_tempDir, Manifest.ManifestFileName)); //download update files silently var loader = new Downloader(LocalManifest, RemoteManifest, _tempDir); loader.RunWorkerAsync(); } } }