Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/jackmawer/BlueRoseClassic.
Something went wrong. Try again.
1.5 kB · 51 lines
C#
at 2.1
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152using System;using System.Windows.Forms;using System.Diagnostics;using System.IO;using ZACKUpdater;using System.Threading;
namespace SimplyUpdate{ public partial class UpdateWindow : Form { Uri address = new Uri(@"https://dl.dropboxusercontent.com/u/42345729/bluerose.zip"); string program = "BlueRoseLauncher.exe"; public static string[] updateParmas { get; set; }
public UpdateWindow() { InitializeComponent(); }
private void UpdateWindow_Load(object sender, EventArgs e) { useLessProgressBar.Style = ProgressBarStyle.Marquee; useLessProgressBar.MarqueeAnimationSpeed = 50;
try { UpdateInfo.SelfUpdate(program, address, "update.zip"); } catch (Exception ex) { MessageBox.Show(ex.Message); try { Process fsoProcess = new Process();
fsoProcess.StartInfo.FileName = program; fsoProcess.StartInfo.UseShellExecute = true; fsoProcess.StartInfo.Arguments = Program.ConvertStringArrayToString(updateParmas); fsoProcess.Start(); Application.Exit(); } catch { Application.Exit(); } } } }}