Add files via upload
This commit is contained in:
parent
19129c85cc
commit
f30a1d27e8
7 changed files with 91 additions and 4 deletions
20
src/Privatezilla/Locales/Locale.Designer.cs
generated
20
src/Privatezilla/Locales/Locale.Designer.cs
generated
|
@ -19,7 +19,7 @@ namespace Privatezilla.Locales {
|
|||
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Locale {
|
||||
|
@ -1335,6 +1335,24 @@ namespace Privatezilla.Locales {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Disable safeguards for Feature Updates ähnelt.
|
||||
/// </summary>
|
||||
internal static string settingsUpdatesDisableSafeguards {
|
||||
get {
|
||||
return ResourceManager.GetString("settingsUpdatesDisableSafeguards", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Microsoft uses diagnostic data to determine whether devices that use Windows Update are ready for a feature update in order to ensure a smooth experience.\nWhen Microsoft determines a device is not ready to update due to a known issue, a safeguard hold (also known as a compatibility hold or update block) is generated to delay the device's upgrade and protect the end-user experience.\nThis setting will opt out of safeguard protections allowing you to bypass any feature upgrade blocks. ähnelt.
|
||||
/// </summary>
|
||||
internal static string settingsUpdatesDisableSafeguardsInfo {
|
||||
get {
|
||||
return ResourceManager.GetString("settingsUpdatesDisableSafeguardsInfo", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Disable forced Windows updates ähnelt.
|
||||
/// </summary>
|
||||
|
|
|
@ -677,6 +677,12 @@ Add translation credits here!</comment>
|
|||
<value>This setting called "TargetReleaseVersionInfo" prevents Windows 10 feature updates from being installed until the specified version reaches the end of support.\nIt will specify your currently used Windows 10 version as the target release version of Windows 10 that you wish the system to be on (supports only Pro and enterprise versions).</value>
|
||||
<comment>Settings > Updates</comment>
|
||||
</data>
|
||||
<data name="settingsUpdatesDisableSafeguards" xml:space="preserve">
|
||||
<value>Disable safeguards for Feature Updates</value>
|
||||
</data>
|
||||
<data name="settingsUpdatesDisableSafeguardsInfo" xml:space="preserve">
|
||||
<value>Microsoft uses diagnostic data to determine whether devices that use Windows Update are ready for a feature update in order to ensure a smooth experience.\nWhen Microsoft determines a device is not ready to update due to a known issue, a safeguard hold (also known as a compatibility hold or update block) is generated to delay the device's upgrade and protect the end-user experience.\nThis setting will opt out of safeguard protections allowing you to bypass any feature upgrade blocks.</value>
|
||||
</data>
|
||||
<data name="settingsUpdatesDisableUpdates" xml:space="preserve">
|
||||
<value>Disable forced Windows updates</value>
|
||||
<comment>Settings > Updates</comment>
|
||||
|
|
|
@ -201,6 +201,7 @@ namespace Privatezilla
|
|||
new SettingNode(new Setting.Updates.DisableUpdates()),
|
||||
new SettingNode(new Setting.Updates.DisableUpdatesSharing()),
|
||||
new SettingNode(new Setting.Updates.BlockMajorUpdates()),
|
||||
new SettingNode(new Setting.Updates.DisableSafeguards()),
|
||||
});
|
||||
|
||||
// Settings > Gaming
|
||||
|
|
|
@ -145,6 +145,7 @@
|
|||
<Compile Include="Settings\Security\DisablePassword.cs" />
|
||||
<Compile Include="Settings\Security\WindowsDRM.cs" />
|
||||
<Compile Include="Settings\Updates\BlockMajorUpdates.cs" />
|
||||
<Compile Include="Settings\Updates\DisableSafeguards.cs" />
|
||||
<Compile Include="Settings\Updates\DisableUpdates.cs" />
|
||||
<Compile Include="Settings\Updates\UpdatesSharing.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
|
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||
// indem Sie "*" wie unten gezeigt eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.41.10")]
|
||||
[assembly: AssemblyFileVersion("0.41.10")]
|
||||
[assembly: AssemblyVersion("0.42.0")]
|
||||
[assembly: AssemblyFileVersion("0.42.0")]
|
||||
|
|
|
@ -6,6 +6,7 @@ namespace Privatezilla.Setting.Cortana
|
|||
internal class DisableCortana : SettingBase
|
||||
{
|
||||
private const string CortanaKey = @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Windows Search";
|
||||
private const string CortanaIconKey = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced";
|
||||
private const int DesiredValue = 0;
|
||||
|
||||
public override string ID()
|
||||
|
@ -21,7 +22,8 @@ namespace Privatezilla.Setting.Cortana
|
|||
public override bool CheckSetting()
|
||||
{
|
||||
return !(
|
||||
RegistryHelper.IntEquals(CortanaKey, "AllowCortana", DesiredValue)
|
||||
RegistryHelper.IntEquals(CortanaKey, "AllowCortana", DesiredValue) &&
|
||||
RegistryHelper.IntEquals(CortanaIconKey, "ShowCortanaButton", DesiredValue)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -30,6 +32,7 @@ namespace Privatezilla.Setting.Cortana
|
|||
try
|
||||
{
|
||||
Registry.SetValue(CortanaKey, "AllowCortana", DesiredValue, RegistryValueKind.DWord);
|
||||
Registry.SetValue(CortanaIconKey, "ShowCortanaButton", DesiredValue, RegistryValueKind.DWord);
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
|
@ -43,6 +46,7 @@ namespace Privatezilla.Setting.Cortana
|
|||
try
|
||||
{
|
||||
Registry.SetValue(CortanaKey, "AllowCortana", 1, RegistryValueKind.DWord);
|
||||
Registry.SetValue(CortanaIconKey, "ShowCortanaButton", 1, RegistryValueKind.DWord);
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
|
|
57
src/Privatezilla/Settings/Updates/DisableSafeguards.cs
Normal file
57
src/Privatezilla/Settings/Updates/DisableSafeguards.cs
Normal file
|
@ -0,0 +1,57 @@
|
|||
using Microsoft.Win32;
|
||||
using Privatezilla.Locales;
|
||||
|
||||
namespace Privatezilla.Setting.Updates
|
||||
{
|
||||
internal class DisableSafeguards : SettingBase
|
||||
{
|
||||
private const string SharingKey = @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate";
|
||||
private const int DesiredValue = 1;
|
||||
|
||||
public override string ID()
|
||||
{
|
||||
return Locale.settingsUpdatesDisableSafeguards;
|
||||
}
|
||||
|
||||
public override string Info()
|
||||
{
|
||||
return Locale.settingsUpdatesDisableSafeguardsInfo.Replace("\\n", "\n");
|
||||
}
|
||||
|
||||
public override bool CheckSetting()
|
||||
{
|
||||
return !(
|
||||
RegistryHelper.IntEquals(SharingKey, "DisableWUfBSafeguards", DesiredValue)
|
||||
);
|
||||
}
|
||||
|
||||
public override bool DoSetting()
|
||||
{
|
||||
try
|
||||
{
|
||||
Registry.SetValue(SharingKey, "DisableWUfBSafeguards", DesiredValue, RegistryValueKind.DWord);
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool UndoSetting()
|
||||
{
|
||||
try
|
||||
{
|
||||
var RegKey = Registry.LocalMachine.OpenSubKey(@"Software\Policies\Microsoft\Windows\WindowsUpdate", true);
|
||||
RegKey.DeleteValue("DisableWUfBSafeguards");
|
||||
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue