public static bool Set(string key, string value) { try { reg.Write(key, value); return(true); } catch { return(false); } }