using System.Windows; using JetBrains.Annotations; using Velopack; namespace Astroke; // from https://github.com/velopack/velopack/blob/master/samples/VeloWpfSample/Program.cs [UsedImplicitly] public class Program { [STAThread] public static void Main(string[] args) { try { //TODO::multi language VelopackApp.Build().WithFirstRun(_ => MessageBox.Show("软件安装成功。后续请使用桌面快捷方式访问本软件。")).Run(); // We can now launch the WPF application as normal. App app = new(); app.InitializeComponent(); app.Run(); } catch (Exception ex) { MessageBox.Show($"Unhandled exception: {ex}"); } } }