返回提交历史
Added
SpaceEngineersBlueprintEditor/Utilities/Helpers/UpgradeHelper.cs
+20
-0
SpaceEngineersModDev/SpaceEngineersBlueprintEditorInWinUI
添加更新帮助类
209f8c6
代码差异
1 个文件
+20
-0
@@ -0,0 +1,20 @@
1
using System.Diagnostics;
2
3
namespace SpaceEngineersBlueprintEditor.Utilities.Helper;
4
5
public static class UpgradeHelper
6
{
7
public static void StartUpdate()
8
{
9
var startInfo = new ProcessStartInfo("SpaceEngineersBlueprintEditor.Installer.exe")
10
{
11
UseShellExecute = true,
12
Verb = "runas"
13
};
14
startInfo.ArgumentList.Add("Upgrade");
15
startInfo.ArgumentList.Add(UserManager.RequestAddress);
16
startInfo.ArgumentList.Add("");
17
Process.Start(startInfo);
18
Application.Current.Exit();
19
}
20
}