i have problem with my code. I have launcher and auto updates. i want unzip proccess wait the download but i cant do it. Can you help me ?
Hi, i have problem with my code. I have launcher and auto updates. i want unzip proccess wait the download but i cant do it. Can you help me ?
async void DownFile(string savep, string url)
{
using (WebClient webClient = new WebClient())
{
webClient.UseDefaultCredentials = true;
webClient.DownloadProgressChanged += client_DownloadProgressChanged;
webClient.DownloadFileCompleted += client_DownloadFileCompleted;
await webClient.DownloadFileTaskAsync(new Uri(url), savep);
}
}
private void button1_Click(object sender, EventArgs e)
{
label1.Text = "Download In Process";
DownFile(savep, url);
label1.Text = "unzip";
Program.ExtractZipFile(savep, "", Application.StartupPath);
button1.Enabled = false;
}
Await - Async Download Problem