public PickerViewModel() { if (!IsAdministrator) { MessageBox.Show($"Please run this program as administrator"); Application.Exit(); } this.InitializeUi(); var data = ConfigurationManager.AppSettings["LauncherPath"]; if (string.IsNullOrEmpty(data) || !File.Exists(data)) { MessageBox.Show("Please choose your Launcher"); var dlg = new OpenFileDialog { Filter = EXE_FILTER }; if (dlg.ShowDialog() != DialogResult.OK) { return; } _nostalePath = dlg.FileName; SettingsManager.AddOrUpdateAppSettings("LauncherPath", dlg.FileName); } else { _nostalePath = data; } }