public static void SaveSetting(string key, bool value) { var regkey = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\" + "E3" + Glob.GetAssemblyShortName()); regkey?.SetValue(key, value); }