-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
31 lines (27 loc) · 779 Bytes
/
Program.cs
File metadata and controls
31 lines (27 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using Velopack;
namespace Clickett
{
internal class Program
{
[STAThread]
public static void Main(string[] args)
{
try
{
// It's important to Run() the VelopackApp as early as possible in app startup.
VelopackApp.Build()
.WithFirstRun((v) => { /* Your first run code here */ })
.Run();
// We can now launch the WPF application as normal.
var app = new App();
app.InitializeComponent();
app.Run();
}
catch (Exception ex)
{
//MessageBox.Show("Unhandled exception: " + ex.ToString());
}
}
}
}