Example #1
0
 private void buttonX2_Click(object sender, EventArgs e)
 {
     try
     {
         X360.IO.DJsIO x = new X360.IO.DJsIO(Application.StartupPath + "/LFLiveUpdater.exe", X360.IO.DJFileMode.Create, true);
         x.Position = 0;
         x.Write(global::Le_Fluffie.Properties.Resources.LFLiveUpdater);
         x.Flush();
         x.Dispose();
         ProcessStartInfo y = new ProcessStartInfo(Application.StartupPath + "/LFLiveUpdater.exe");
         y.UseShellExecute = false;
         Process updater = Process.Start(y);
         Visible = false;
         updater.WaitForExit();
         Visible = true;
     }
     catch { }
     MessageBox.Show("Error in updating, please manually download");
 }
Example #2
0
 private void buttonX2_Click(object sender, EventArgs e)
 {
     try
     {
         X360.IO.DJsIO x = new X360.IO.DJsIO(Application.StartupPath + "/LFLiveUpdater.exe", X360.IO.DJFileMode.Create, true);
         x.Position = 0;
         x.Write(global::Le_Fluffie.Properties.Resources.LFLiveUpdater);
         x.Flush();
         x.Dispose();
         ProcessStartInfo y = new ProcessStartInfo(Application.StartupPath + "/LFLiveUpdater.exe");
         y.UseShellExecute = false;
         Process updater = Process.Start(y);
         Visible = false;
         updater.WaitForExit();
         Visible = true;
     }
     catch { }
     MessageBox.Show("Error in updating, please manually download");
 }