/// <summary> /// Sets the Profile Password in the Registry /// </summary> /// <param name="id">Profile ID</param> /// <param name="password">Password</param> private static void SetProfilePassword(int id, string password) { try { Microsoft.Win32.RegistryKey key = new Computer().Registry.CurrentUser.OpenSubKey(RegKey + "\\" + id, true); key.SetValue("Pass", password); } catch { } }
/// <summary> /// Sets all current accounts as not for upload, so the new account can be the upload account /// </summary> internal static void SetOtherAccountsAsNotForUpload() { try { AWBProfiles.ResetTempPassword(); foreach (int id in GetProfileIDs()) { Microsoft.Win32.RegistryKey key = new Computer().Registry.CurrentUser.OpenSubKey(RegKey + "\\" + id, true); key.SetValue("UseForUpload", false); } } catch { } }