Merge pull request #50 from Cereal-Killa/fix-no-auto-update
Fix for no auto update
This commit is contained in:
commit
b7e79c9abe
1 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ namespace Privatezilla.Setting.Updates
|
||||||
public override bool CheckSetting()
|
public override bool CheckSetting()
|
||||||
{
|
{
|
||||||
return !(
|
return !(
|
||||||
RegistryHelper.IntEquals(NoAutoUpdate, "NoAutoUpdate",0) &&
|
RegistryHelper.IntEquals(NoAutoUpdate, "NoAutoUpdate", 1) &&
|
||||||
RegistryHelper.IntEquals(AUOptions, "AUOptions", 2) &&
|
RegistryHelper.IntEquals(AUOptions, "AUOptions", 2) &&
|
||||||
RegistryHelper.IntEquals(ScheduledInstallDay, "ScheduledInstallDay", 0) &&
|
RegistryHelper.IntEquals(ScheduledInstallDay, "ScheduledInstallDay", 0) &&
|
||||||
RegistryHelper.IntEquals(ScheduledInstallTime, "ScheduledInstallTime", 3)
|
RegistryHelper.IntEquals(ScheduledInstallTime, "ScheduledInstallTime", 3)
|
||||||
|
@ -34,7 +34,7 @@ namespace Privatezilla.Setting.Updates
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Registry.SetValue(NoAutoUpdate, "NoAutoUpdate", 0, RegistryValueKind.DWord);
|
Registry.SetValue(NoAutoUpdate, "NoAutoUpdate", 1, RegistryValueKind.DWord);
|
||||||
Registry.SetValue(AUOptions, "AUOptions", 2, RegistryValueKind.DWord);
|
Registry.SetValue(AUOptions, "AUOptions", 2, RegistryValueKind.DWord);
|
||||||
Registry.SetValue(ScheduledInstallDay, "ScheduledInstallDay", 0, RegistryValueKind.DWord);
|
Registry.SetValue(ScheduledInstallDay, "ScheduledInstallDay", 0, RegistryValueKind.DWord);
|
||||||
Registry.SetValue(ScheduledInstallTime, "ScheduledInstallTime", 3, RegistryValueKind.DWord);
|
Registry.SetValue(ScheduledInstallTime, "ScheduledInstallTime", 3, RegistryValueKind.DWord);
|
||||||
|
@ -50,7 +50,7 @@ namespace Privatezilla.Setting.Updates
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Registry.SetValue(NoAutoUpdate, "NoAutoUpdate", 1, RegistryValueKind.DWord);
|
Registry.SetValue(NoAutoUpdate, "NoAutoUpdate", 0, RegistryValueKind.DWord);
|
||||||
|
|
||||||
var RegKey = Registry.LocalMachine.OpenSubKey(@"Software\Policies\Microsoft\Windows\WindowsUpdate\AU", true);
|
var RegKey = Registry.LocalMachine.OpenSubKey(@"Software\Policies\Microsoft\Windows\WindowsUpdate\AU", true);
|
||||||
RegKey.DeleteValue("AUOptions");
|
RegKey.DeleteValue("AUOptions");
|
||||||
|
|
Loading…
Add table
Reference in a new issue