From e3245b3e8c526b2da8f69cbf8e374bcba84cda34 Mon Sep 17 00:00:00 2001 From: Belim Date: Sun, 20 Sep 2020 19:24:54 +0200 Subject: [PATCH] Delete InstalledApps.cs --- .../Settings/Privacy/InstalledApps.cs | 56 ------------------- 1 file changed, 56 deletions(-) delete mode 100644 src/Privatezilla/Privatezilla/Settings/Privacy/InstalledApps.cs diff --git a/src/Privatezilla/Privatezilla/Settings/Privacy/InstalledApps.cs b/src/Privatezilla/Privatezilla/Settings/Privacy/InstalledApps.cs deleted file mode 100644 index a1bfa14..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Privacy/InstalledApps.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Privacy -{ - internal class InstalledApps : SettingBase - { - private const string InstalledKey = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; - private const int DesiredValue = 0; - - public override string ID() - { - return Properties.Resources.settingsPrivacyInstalledApps; - } - - public override string Info() - { - return Properties.Resources.settingsPrivacyInstalledAppsInfo.Replace("\\n", "\n"); - } - - public override bool CheckSetting() - { - - return !( - RegistryHelper.IntEquals(InstalledKey, "SilentInstalledAppsEnabled", DesiredValue) - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(InstalledKey, "SilentInstalledAppsEnabled", DesiredValue, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - - public override bool UndoSetting() - { - try - { - Registry.SetValue(InstalledKey, "SilentInstalledAppsEnabled", 1, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - } -} \ No newline at end of file