Browse Source

Update registry key

master 0.7
Styris 9 months ago
parent
commit
99ef971638
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      TrustedUninstaller.CLI/CLI.cs
  2. +1
    -1
      TrustedUninstaller.Shared/Requirements.cs

+ 1
- 1
TrustedUninstaller.CLI/CLI.cs View File

@ -431,7 +431,7 @@ namespace TrustedUninstaller.CLI
};
disableDefender.RunTask().Wait();
if (new RegistryValueAction() {KeyName = @"SYSTEM\CurrentControlSet\Services\WinDefend", Value = "Start", Data = 4, Type = RegistryValueType.REG_DWORD}.GetStatus() != UninstallTaskStatus.Completed)
if (new RegistryValueAction() {KeyName = @"HKLM\SYSTEM\CurrentControlSet\Services\WinDefend", Value = "Start", Data = 4, Type = RegistryValueType.REG_DWORD}.GetStatus() != UninstallTaskStatus.Completed)
throw new Exception("Could not disable WinDefend service.");
}


+ 1
- 1
TrustedUninstaller.Shared/Requirements.cs View File

@ -217,7 +217,7 @@ namespace TrustedUninstaller.Shared
{
try
{
if (Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\Services\WinDefend") != null && new RegistryValueAction() { KeyName = @"SYSTEM\CurrentControlSet\Services\WinDefend", Value = "Start", Data = 4, Type = RegistryValueType.REG_DWORD }.GetStatus() != UninstallTaskStatus.Completed)
if (Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\Services\WinDefend") != null && new RegistryValueAction() { KeyName = @"HKLM\SYSTEM\CurrentControlSet\Services\WinDefend", Value = "Start", Data = 4, Type = RegistryValueType.REG_DWORD }.GetStatus() != UninstallTaskStatus.Completed)
return false;
if (Registry.ClassesRoot.OpenSubKey(@"CLSID\{2781761E-28E0-4109-99FE-B9D127C57AFE}\InprocServer32") != null) return false;


Loading…
Cancel
Save