개정판 77cdac33
벽산 수정 후 백업
Change-Id: I8e3eb48f615478a49efa0ab4014a8ef17d273d0a
MarkusAutoUpdate/src/NetSparkle.Samples.NetFramework.WPF/App.xaml.cs | ||
---|---|---|
1 | 1 |
using log4net; |
2 | 2 |
using NetSparkle.TestAppWPF.Common; |
3 |
using NetSparkle.TestAppWPF.ViewModel; |
|
3 | 4 |
using Salaros.Configuration; |
4 | 5 |
using System; |
5 | 6 |
using System.Collections.Generic; |
... | ... | |
20 | 21 |
public static string AppCastUri = null; |
21 | 22 |
public static bool IsExternal = false; |
22 | 23 |
public static string ExternalAddress = null; |
24 |
public static ExtractParam extractParam = null; |
|
25 |
|
|
26 |
public static bool IsExtract = false; |
|
23 | 27 |
|
24 | 28 |
public static ILog logger = LogManager.GetLogger(typeof(App)); |
25 | 29 |
|
... | ... | |
32 | 36 |
{ |
33 | 37 |
try |
34 | 38 |
{ |
35 |
KcomParam = e.Args[0]; |
|
36 |
|
|
37 | 39 |
var startDir = AppDomain.CurrentDomain.BaseDirectory; |
38 | 40 |
var configFilePath = $"{System.IO.Path.Combine(startDir, "Markus.AppUpdate.ini")}"; |
39 | 41 |
|
... | ... | |
74 | 76 |
|
75 | 77 |
App.logger.Info($"App Cast Uri : {AppCastUri}"); |
76 | 78 |
|
79 |
if (e.Args.Count() > 0) |
|
80 |
{ |
|
81 |
if (e.Args[0] == "EXT" && e.Args.Count() == 2) |
|
82 |
{ |
|
83 |
App.extractParam = ObjectToBytesStringConvert.BytesStringToObject<ExtractParam>(e.Args[1]); |
|
84 |
App.IsExtract = true; |
|
85 |
} |
|
86 |
else if (e.Args[0] == "ADMIN" && e.Args.Count() == 2) |
|
87 |
{ |
|
88 |
App.extractParam = ObjectToBytesStringConvert.BytesStringToObject<ExtractParam>(e.Args[1]); |
|
89 |
App.KcomParam = App.extractParam.AppRunParam; |
|
90 |
} |
|
91 |
else |
|
92 |
{ |
|
93 |
KcomParam = e.Args[0]; |
|
94 |
} |
|
95 |
} |
|
96 |
|
|
77 | 97 |
base.OnStartup(e); |
78 | 98 |
} |
79 | 99 |
catch (Exception ex) |
내보내기 Unified diff