title: How do I download and unzip a program in C #
body: <p>I'm making the launcher for the game server. How can I get the game to download and unzip it. I have a zip file I prepared, I want it to download and install &quot;C: \ Program Files&quot; automatically.</p>
  <pre><code>using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  using System.Net;
  
  namespace WindowsFormsApp3
  {
      public partial class Form1 : Form
      {
  
          WebClient web = new WebClient();
  
          public Form1()
          {
              InitializeComponent();
          }
  
          private void DosyaIndirmeTamamlandiUyarisi(object sender, AsyncCompletedEventArgs e)
          {
              MessageBox.Show(&quot;Download Completed&quot;);
          }
  
          private void Download_Click(object sender, EventArgs e)
          {
              web.DownloadFileCompleted += new AsyncCompletedEventHandler(DosyaIndirmeTamamlandiUyarisi);
  
              Uri DosyaAdresi = new Uri(textBox1.Text);
              web.DownloadFileAsync(DosyaAdresi, textBox1.Text.Length.ToString()+&quot;.zip&quot;);
          }
      }
  }
  </code></pre>