(string[] args)
| 17 | public const string VERSION = "1.1.6"; |
| 18 | |
| 19 | [STAThread] |
| 20 | private static int Main(string[] args) |
| 21 | { |
| 22 | var arg = args.Length > 0 ? args[0] : null; |
| 23 | |
| 24 | if (DataStore.IsDataStore(arg)) |
| 25 | { |
| 26 | DataStore.DumpDataStore(arg); |
| 27 | return 0; |
| 28 | } |
| 29 | |
| 30 | using (var mutex = new Mutex(true, "989d2110-46da-4c8d-84c1-c4a42e43c424", out var createdNew)) |
| 31 | { |
| 32 | if (arg != null) |
| 33 | { |
| 34 | switch (arg) |
| 35 | { |
| 36 | case "--install": |
| 37 | return HandleInstall(createdNew, true); |
| 38 | case "--uninstall": |
| 39 | return HandleInstall(createdNew, false); |
| 40 | default: |
| 41 | break; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | return RunApplication(createdNew); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | private static int RunApplication(bool createdNew) |
| 50 | { |
no test coverage detected