浏览代码

Updated to v10.5

deadmoon 3 年之前
父节点
当前提交
8a020b67c6

+ 1 - 1
Optimizer/MainForm.cs

@@ -1005,7 +1005,7 @@ namespace Optimizer
 
 
         private void Main_Load(object sender, EventArgs e)
         private void Main_Load(object sender, EventArgs e)
         {
         {
-
+            
         }
         }
 
 
         private void GetDesktopItems()
         private void GetDesktopItems()

+ 3 - 0
Optimizer/Optimize.cs

@@ -54,6 +54,9 @@ namespace Optimizer
 
 
         internal static void EnablePerformanceTweaks()
         internal static void EnablePerformanceTweaks()
         {
         {
+            // add Open with CMD option
+            Utilities.ImportRegistryScript(Required.ScriptsFolder + "AddOpenWithCMD.reg");
+
             // enable auto-complete in Run Dialog 
             // enable auto-complete in Run Dialog 
             Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoComplete", "Append Completion", "yes", RegistryValueKind.String);
             Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoComplete", "Append Completion", "yes", RegistryValueKind.String);
             Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoComplete", "AutoSuggest", "yes", RegistryValueKind.String);
             Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoComplete", "AutoSuggest", "yes", RegistryValueKind.String);

+ 1 - 0
Optimizer/Optimizer.csproj

@@ -243,6 +243,7 @@
       <DependentUpon>Settings.settings</DependentUpon>
       <DependentUpon>Settings.settings</DependentUpon>
       <DesignTimeSharedInput>True</DesignTimeSharedInput>
       <DesignTimeSharedInput>True</DesignTimeSharedInput>
     </Compile>
     </Compile>
+    <None Include="Resources\AddOpenWithCMD.reg" />
     <None Include="Resources\DE.json" />
     <None Include="Resources\DE.json" />
     <None Include="Resources\DesktopShortcuts.reg" />
     <None Include="Resources\DesktopShortcuts.reg" />
     <None Include="Resources\DisableDefenderSafeMode1903Plus.bat" />
     <None Include="Resources\DisableDefenderSafeMode1903Plus.bat" />

+ 1 - 1
Optimizer/Program.cs

@@ -12,7 +12,7 @@ namespace Optimizer
         /* DO NOT LEAVE THEM EMPTY */
         /* DO NOT LEAVE THEM EMPTY */
 
 
         internal readonly static float Major = 10;
         internal readonly static float Major = 10;
-        internal readonly static float Minor = 4;
+        internal readonly static float Minor = 5;
 
 
         internal readonly static bool EXPERIMENTAL_BUILD = false;
         internal readonly static bool EXPERIMENTAL_BUILD = false;
 
 

+ 47 - 18
Optimizer/Properties/Resources.Designer.cs

@@ -60,6 +60,33 @@ namespace Optimizer.Properties {
             }
             }
         }
         }
         
         
+        /// <summary>
+        ///   Looks up a localized string similar to Windows Registry Editor Version 5.00
+        ///
+        ///[HKEY_CLASSES_ROOT\Directory\shell\OpenWithCMD]
+        ///@=&quot;Open Command Prompt here&quot;
+        ///&quot;Icon&quot;=&quot;cmd.exe&quot;
+        ///&quot;NoWorkingDirectory&quot;=&quot;&quot;
+        ///
+        ///[HKEY_CLASSES_ROOT\Directory\shell\OpenWithCMD\command]
+        ///@=&quot;cmd.exe /s /k pushd \&quot;%V\&quot;&quot;
+        ///
+        ///[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWithCMD]
+        ///@=&quot;Open Command Prompt here&quot;
+        ///&quot;Icon&quot;=&quot;cmd.exe&quot;
+        ///&quot;NoWorkingDirectory&quot;=&quot;&quot;
+        ///
+        ///[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWithCMD\command]
+        ///@=&quot;cmd.exe /s /k pushd \&quot;%V\&quot;&quot;
+        ///
+        ///[HKEY_CLASSES_ROOT\D [rest of string was truncated]&quot;;.
+        /// </summary>
+        internal static string AddOpenWithCMD {
+            get {
+                return ResourceManager.GetString("AddOpenWithCMD", resourceCulture);
+            }
+        }
+        
         /// <summary>
         /// <summary>
         ///   Looks up a localized string similar to {
         ///   Looks up a localized string similar to {
         ///	&quot;btnAbout&quot;: &quot;OK&quot;,
         ///	&quot;btnAbout&quot;: &quot;OK&quot;,
@@ -133,7 +160,7 @@ namespace Optimizer.Properties {
         ///&quot;xlsolution&quot;=dword:00000001
         ///&quot;xlsolution&quot;=dword:00000001
         /// 
         /// 
         ///[HKEY_CURRENT_USER\Software\Policies\microsoft\office\16.0\osm\preventedsolutiontypes]
         ///[HKEY_CURRENT_USER\Software\Policies\microsoft\office\16.0\osm\preventedsolutiontypes]
-        ///&quot;agave&quot;=dword:0000000 [rest of string was truncated]&quot;;.
+        ///&quot;agave&quot; [rest of string was truncated]&quot;;.
         /// </summary>
         /// </summary>
         internal static string DisableOfficeTelemetry {
         internal static string DisableOfficeTelemetry {
             get {
             get {
@@ -160,7 +187,7 @@ namespace Optimizer.Properties {
         ///schtasks /end /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\BthSQM&quot;
         ///schtasks /end /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\BthSQM&quot;
         ///schtasks /change /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\BthSQM&quot; /disable
         ///schtasks /change /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\BthSQM&quot; /disable
         ///schtasks /end /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask&quot;
         ///schtasks /end /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask&quot;
-        ///schtasks /change /tn &quot;\Microsoft\Windo [rest of string was truncated]&quot;;.
+        ///schtasks /change /tn &quot;\Microsoft\ [rest of string was truncated]&quot;;.
         /// </summary>
         /// </summary>
         internal static string DisableTelemetryTasks {
         internal static string DisableTelemetryTasks {
             get {
             get {
@@ -269,7 +296,7 @@ namespace Optimizer.Properties {
         ///schtasks /change /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask&quot; /enable
         ///schtasks /change /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask&quot; /enable
         ///schtasks /change /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip&quot; /enable
         ///schtasks /change /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip&quot; /enable
         ///schtasks /change /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\Uploader&quot; /enable
         ///schtasks /change /tn &quot;\Microsoft\Windows\Customer Experience Improvement Program\Uploader&quot; /enable
-        ///schtasks / [rest of string was truncated]&quot;;.
+        ///schta [rest of string was truncated]&quot;;.
         /// </summary>
         /// </summary>
         internal static string EnableTelemetryTasks {
         internal static string EnableTelemetryTasks {
             get {
             get {
@@ -299,8 +326,9 @@ namespace Optimizer.Properties {
         ///	&quot;txtBitness&quot;: &quot;Estas trabajando con {BITS}&quot;,
         ///	&quot;txtBitness&quot;: &quot;Estas trabajando con {BITS}&quot;,
         ///	&quot;linkUpdate&quot;: &quot;Actualización disponible&quot;,
         ///	&quot;linkUpdate&quot;: &quot;Actualización disponible&quot;,
         ///	&quot;lblLab&quot;: &quot;Lamzamiento experimental\n(eliminar después de la prueba)&quot;,
         ///	&quot;lblLab&quot;: &quot;Lamzamiento experimental\n(eliminar después de la prueba)&quot;,
+        ///	&quot;CleanPreviewForm&quot;: &quot;Vista Previa Limpia&quot;,
         ///	&quot;performanceSw&quot;: &quot;Habilitar ajustes de rendimiento&quot;,
         ///	&quot;performanceSw&quot;: &quot;Habilitar ajustes de rendimiento&quot;,
-        ///	&quot;networkSw&quot;: &quot;Deshabilitar la limitación de la r [rest of string was truncated]&quot;;.
+        ///	&quot;ne [rest of string was truncated]&quot;;.
         /// </summary>
         /// </summary>
         internal static string ES {
         internal static string ES {
             get {
             get {
@@ -326,16 +354,16 @@ namespace Optimizer.Properties {
         /// <summary>
         /// <summary>
         ///   Looks up a localized string similar to {
         ///   Looks up a localized string similar to {
         ///	&quot;btnAbout&quot;: &quot;OK&quot;,
         ///	&quot;btnAbout&quot;: &quot;OK&quot;,
-        ///	&quot;restartButton&quot;: &quot;Appliquer &amp;&amp; Redmarrer&quot;,
-        ///	&quot;restartButton8&quot;: &quot;Appliquer &amp;&amp; Redmarrer&quot;,
-        ///	&quot;restartButton10&quot;: &quot;Appliquer &amp;&amp; Redmarrer&quot;,
-        ///	&quot;restartAndApply&quot;: &quot;Redmarrer pour appliquer les changements?&quot;,
+        ///	&quot;restartButton&quot;: &quot;Appliquer &amp;&amp; Redemarrer&quot;,
+        ///	&quot;restartButton8&quot;: &quot;Appliquer &amp;&amp; Redemarrer&quot;,
+        ///	&quot;restartButton10&quot;: &quot;Appliquer &amp;&amp; Redemarrer&quot;,
+        ///	&quot;restartAndApply&quot;: &quot;Redemarrer pour appliquer les changements?&quot;,
         ///	&quot;txtVersion&quot;: &quot;Version: {VN}&quot;,
         ///	&quot;txtVersion&quot;: &quot;Version: {VN}&quot;,
         ///	&quot;txtBitness&quot;: &quot;Vous travaillez avec {BITS}&quot;,
         ///	&quot;txtBitness&quot;: &quot;Vous travaillez avec {BITS}&quot;,
-        ///	&quot;linkUpdate&quot;: &quot;Mise  jour disponible&quot;,
-        ///	&quot;lblLab&quot;: &quot;build Experimental\n(supprimer apr�s avoir test�)&quot;,
-        ///	&quot;performanceSw&quot;: &quot;Activer les Tweaks de Performance&quot;,
-        ///	&quot;networkSw&quot;: &quot;D�sactiver la limitatio [rest of string was truncated]&quot;;.
+        ///	&quot;linkUpdate&quot;: &quot;Mise a jour disponible&quot;,
+        ///	&quot;CleanPreviewForm&quot;: &quot;Nettoyer L&apos;aperçu&quot;,
+        ///	&quot;lblLab&quot;: &quot;build Experimental\n(supprimer apres avoir teste)&quot;,
+        ///	&quot;performanceSw&quot;: &quot;Activer les Tweaks de Performanc [rest of string was truncated]&quot;;.
         /// </summary>
         /// </summary>
         internal static string FR {
         internal static string FR {
             get {
             get {
@@ -383,7 +411,7 @@ namespace Optimizer.Properties {
         ///&quot;NoWorkingDirectory&quot;=&quot;&quot;
         ///&quot;NoWorkingDirectory&quot;=&quot;&quot;
         ///
         ///
         ///[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
         ///[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
-        ///@=&quot;cmd.exe /c takeown /f \&quot;%1\&quot; /r /d y &amp;&amp; icacls \&quot;% [rest of string was truncated]&quot;;.
+        ///@=&quot;cmd.exe /c takeown /f \&quot;%1\&quot; /r /d  [rest of string was truncated]&quot;;.
         /// </summary>
         /// </summary>
         internal static string InstallTakeOwnership {
         internal static string InstallTakeOwnership {
             get {
             get {
@@ -429,12 +457,12 @@ namespace Optimizer.Properties {
         ///	&quot;restartButton8&quot;: &quot;Aplicar e reiniciar&quot;,
         ///	&quot;restartButton8&quot;: &quot;Aplicar e reiniciar&quot;,
         ///	&quot;restartButton10&quot;: &quot;Aplicar e reiniciar&quot;,
         ///	&quot;restartButton10&quot;: &quot;Aplicar e reiniciar&quot;,
         ///	&quot;restartAndApply&quot;: &quot;Reiniciar para aplicar as alterações?&quot;,
         ///	&quot;restartAndApply&quot;: &quot;Reiniciar para aplicar as alterações?&quot;,
+        ///	&quot;CleanPreviewForm&quot;: &quot;Antevisão Limpa&quot;,
         ///	&quot;txtVersion&quot;: &quot;Versão: {VN}&quot;,
         ///	&quot;txtVersion&quot;: &quot;Versão: {VN}&quot;,
         ///	&quot;txtBitness&quot;: &quot;A arquitetura do seu computador é de {BITS}.&quot;,
         ///	&quot;txtBitness&quot;: &quot;A arquitetura do seu computador é de {BITS}.&quot;,
         ///	&quot;linkUpdate&quot;: &quot;Nova atualização disponível&quot;,
         ///	&quot;linkUpdate&quot;: &quot;Nova atualização disponível&quot;,
         ///	&quot;lblLab&quot;: &quot;Experimentar nova implementação\n(deletar após teste)&quot;,
         ///	&quot;lblLab&quot;: &quot;Experimentar nova implementação\n(deletar após teste)&quot;,
-        ///	&quot;performanceSw&quot;: &quot;Habilitar ajustes de desempenho&quot;,
-        ///	&quot;networkSw&quot;: &quot;Desativar limitaç [rest of string was truncated]&quot;;.
+        ///	&quot;performanceSw&quot;: &quot;Habilitar ajustes de desem [rest of string was truncated]&quot;;.
         /// </summary>
         /// </summary>
         internal static string PT {
         internal static string PT {
             get {
             get {
@@ -466,10 +494,10 @@ namespace Optimizer.Properties {
         ///	&quot;restartAndApply&quot;: &quot;перезагрузить, чтобы изменения вступили в силу?&quot;,
         ///	&quot;restartAndApply&quot;: &quot;перезагрузить, чтобы изменения вступили в силу?&quot;,
         ///	&quot;txtVersion&quot;: &quot;Версия: {VN}&quot;,
         ///	&quot;txtVersion&quot;: &quot;Версия: {VN}&quot;,
         ///	&quot;txtBitness&quot;: &quot;Вы работаете с {BITS}&quot;,
         ///	&quot;txtBitness&quot;: &quot;Вы работаете с {BITS}&quot;,
+        ///	&quot;CleanPreviewForm&quot;: &quot;Чистый предварительный просмотр&quot;,
         ///	&quot;linkUpdate&quot;: &quot;обновление доступно&quot;,
         ///	&quot;linkUpdate&quot;: &quot;обновление доступно&quot;,
         ///	&quot;lblLab&quot;: &quot;экспериментальная сборка\n(удалить после тестирования)&quot;,
         ///	&quot;lblLab&quot;: &quot;экспериментальная сборка\n(удалить после тестирования)&quot;,
-        ///	&quot;performanceSw&quot;: &quot;Вкл Настройки производительности&quot;,
-        ///	&quot;networkSw&quot;: &quot;Отключить Сетевое  [rest of string was truncated]&quot;;.
+        ///	&quot;performanceSw&quot;: &quot;Вкл Настройк [rest of string was truncated]&quot;;.
         /// </summary>
         /// </summary>
         internal static string RU {
         internal static string RU {
             get {
             get {
@@ -529,10 +557,11 @@ namespace Optimizer.Properties {
         ///	&quot;restartAndApply&quot;: &quot;Değişiklikleri uygulamak için yeniden başlatılsın mı?&quot;,
         ///	&quot;restartAndApply&quot;: &quot;Değişiklikleri uygulamak için yeniden başlatılsın mı?&quot;,
         ///	&quot;txtVersion&quot;: &quot;Versiyon: {VN}&quot;,
         ///	&quot;txtVersion&quot;: &quot;Versiyon: {VN}&quot;,
         ///	&quot;txtBitness&quot;: &quot;{BITS} ile çalışıyor.&quot;,
         ///	&quot;txtBitness&quot;: &quot;{BITS} ile çalışıyor.&quot;,
+        ///	&quot;CleanPreviewForm&quot;: &quot;Temiz Önizleme&quot;,
         ///	&quot;linkUpdate&quot;: &quot;Güncelleme Mevcut&quot;,
         ///	&quot;linkUpdate&quot;: &quot;Güncelleme Mevcut&quot;,
         ///	&quot;lblLab&quot;: &quot;Deneysel Yapı\n(Testten sonra silin)&quot;,
         ///	&quot;lblLab&quot;: &quot;Deneysel Yapı\n(Testten sonra silin)&quot;,
         ///	&quot;performanceSw&quot;: &quot;Performans Ayarlarını Etkinleştir&quot;,
         ///	&quot;performanceSw&quot;: &quot;Performans Ayarlarını Etkinleştir&quot;,
-        ///	&quot;networkSw&quot;: &quot;Ağ Kısıtlamasını Devre Dışı Bıra [rest of string was truncated]&quot;;.
+        ///	&quot;netwo [rest of string was truncated]&quot;;.
         /// </summary>
         /// </summary>
         internal static string TR {
         internal static string TR {
             get {
             get {

+ 3 - 0
Optimizer/Properties/Resources.resx

@@ -202,4 +202,7 @@
   <data name="FR" type="System.Resources.ResXFileRef, System.Windows.Forms">
   <data name="FR" type="System.Resources.ResXFileRef, System.Windows.Forms">
     <value>..\Resources\FR.json;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
     <value>..\Resources\FR.json;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
   </data>
   </data>
+  <data name="AddOpenWithCMD" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\Resources\AddOpenWithCMD.reg;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
+  </data>
 </root>
 </root>

+ 5 - 3
Optimizer/Required.cs

@@ -20,7 +20,7 @@ namespace Optimizer
             ReadyMadeMenusFolder + "SystemTools.reg",
             ReadyMadeMenusFolder + "SystemTools.reg",
             ReadyMadeMenusFolder + "WindowsApps.reg",
             ReadyMadeMenusFolder + "WindowsApps.reg",
             ReadyMadeMenusFolder + "InstallTakeOwnership.reg",
             ReadyMadeMenusFolder + "InstallTakeOwnership.reg",
-            ReadyMadeMenusFolder + "RemoveTakeOwnership.reg"
+            ReadyMadeMenusFolder + "RemoveTakeOwnership.reg",
         };
         };
 
 
         readonly static string[] readyMadeMenusFiles =
         readonly static string[] readyMadeMenusFiles =
@@ -46,7 +46,8 @@ namespace Optimizer
             ScriptsFolder + "EnableXboxTasks.bat",
             ScriptsFolder + "EnableXboxTasks.bat",
             ScriptsFolder + "OneDrive_Uninstaller.cmd",
             ScriptsFolder + "OneDrive_Uninstaller.cmd",
             ScriptsFolder + "GPEditEnablerInHome.bat",
             ScriptsFolder + "GPEditEnablerInHome.bat",
-            ScriptsFolder + "FlushDNSCache.bat"
+            ScriptsFolder + "FlushDNSCache.bat",
+            ScriptsFolder + "AddOpenWithCMD.reg"
         };
         };
 
 
         readonly static string[] scriptFiles =
         readonly static string[] scriptFiles =
@@ -61,7 +62,8 @@ namespace Optimizer
             Properties.Resources.EnableXboxTasks,
             Properties.Resources.EnableXboxTasks,
             Encoding.UTF8.GetString(Properties.Resources.OneDrive_Uninstaller),
             Encoding.UTF8.GetString(Properties.Resources.OneDrive_Uninstaller),
             Properties.Resources.GPEditEnablerInHome,
             Properties.Resources.GPEditEnablerInHome,
-            Properties.Resources.FlushDNSCache
+            Properties.Resources.FlushDNSCache,
+            Properties.Resources.AddOpenWithCMD
         };
         };
 
 
         internal static void Deploy()
         internal static void Deploy()

+ 25 - 0
Optimizer/Resources/AddOpenWithCMD.reg

@@ -0,0 +1,25 @@
+Windows Registry Editor Version 5.00
+
+[HKEY_CLASSES_ROOT\Directory\shell\OpenWithCMD]
+@="Open Command Prompt here"
+"Icon"="cmd.exe"
+"NoWorkingDirectory"=""
+
+[HKEY_CLASSES_ROOT\Directory\shell\OpenWithCMD\command]
+@="cmd.exe /s /k pushd \"%V\""
+
+[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWithCMD]
+@="Open Command Prompt here"
+"Icon"="cmd.exe"
+"NoWorkingDirectory"=""
+
+[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWithCMD\command]
+@="cmd.exe /s /k pushd \"%V\""
+
+[HKEY_CLASSES_ROOT\Drive\shell\OpenWithCMD]
+@="Open Command Prompt here"
+"Icon"="cmd.exe"
+"NoWorkingDirectory"=""
+
+[HKEY_CLASSES_ROOT\Drive\shell\OpenWithCMD\command]
+@="cmd.exe /s /k pushd \"%V\""

+ 4 - 4
README.md

@@ -10,7 +10,7 @@ Optimizer is recommended after a fresh, clean installation of Windows to achieve
 
 
 Depending on your version of Windows, Optimizer will also allow you to perform some specific tweaks.
 Depending on your version of Windows, Optimizer will also allow you to perform some specific tweaks.
 <p align="center">
 <p align="center">
-	<a href="https://github.com/hellzerg/optimizer/releases/download/10.4/Optimizer-10.4.exe" target="_blank">
+	<a href="https://github.com/hellzerg/optimizer/releases/download/10.5/Optimizer-10.5.exe" target="_blank">
 		<img src="download-button.png">
 		<img src="download-button.png">
 		<br>
 		<br>
 		<img src="flags.png">
 		<img src="flags.png">
@@ -80,6 +80,6 @@ https://github.com/hellzerg/optimizer/blob/master/FEED.md
 
 
 ## Details: ##
 ## Details: ##
 
 
-* Latest version: 10.4
-* Released: October 29, 2021
-* SHA256: C3533267A4815C2E6D1F92469C43ACAB3744194457B1288870F6467AE124A298
+* Latest version: 10.5
+* Released: November 14, 2021
+* SHA256: 1F1287855E47C9222872D67D376C11F6BFA5600C32EEFAE9FFE0FB6D1A68246A

+ 1 - 1
version.txt

@@ -1 +1 @@
-10.4
+10.5