Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/jackmawer/BlueRoseClassic.
Something went wrong. Try again.
1.6 kB · 57 lines
C#
at 2.2
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758using 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"); static 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 launcherProcess = new Process();
launcherProcess.StartInfo.FileName = program; launcherProcess.StartInfo.UseShellExecute = true; launcherProcess.Start(); Application.Exit(); } catch { try { Application.Exit(); } catch { Environment.Exit(0); } } } } }}