Pārlūkot izejas kodu

Major update to .NET Framework 4.8 (v14.8)

deadmoon 2 gadi atpakaļ
vecāks
revīzija
435a316fa6

+ 6 - 0
CHANGELOG.md

@@ -1,3 +1,9 @@
+## [14.8] - 2023-01-07
+- New: Updated to .NET Framework 4.8 for better performance and support
+- New: Added Restore all UWP apps
+- Improved: Refactored command-line processor
+- Hotfix: UWP uninstall confirmation message fixed (#281)
+
 ## [14.7] - 2022-12-24
 - Hotfix: Theme color bug causing crash on launch
 

+ 1 - 1
Optimizer/App.config

@@ -2,5 +2,5 @@
 <configuration>
     <startup> 
         
-    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/></startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup>
 </configuration>

+ 2 - 2
Optimizer/Controls/ToggleCard.Designer.cs

@@ -89,7 +89,7 @@ namespace Optimizer
 
         #endregion
         private System.Windows.Forms.Panel Panel;
-        protected internal System.Windows.Forms.Label Label;
-        protected internal MoonToggle Toggle;
+        internal System.Windows.Forms.Label Label;
+        internal MoonToggle Toggle;
     }
 }

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 213 - 216
Optimizer/Forms/MainForm.Designer.cs


+ 11 - 1
Optimizer/Forms/MainForm.cs

@@ -73,6 +73,7 @@ namespace Optimizer
         string _errorModernAppsMessage = "The following app(s) couldn't be uninstalled:\n";
         string _repairMessage = "Are you sure you want to reset configuration?\n\nThis will reset all your preferences, including any icons you extracted or downloaded using Integrator, but will not touch anything on your computer!";
         string _flushDNSMessage = "Are you sure you wish to flush the DNS cache of Windows?\n\nThis will cause internet disconnection for a moment and it may be needed a restart to function properly.";
+        string _uwpRestoreMessage = "Are you sure you want to do this?";
 
         string _byteSizeNullString = " b";
         string _primaryItemTag = "_primary";
@@ -1865,6 +1866,7 @@ namespace Optimizer
                 _removeModernAppsMessage = Options.TranslationList["removeModernApps"];
                 _errorModernAppsMessage = Options.TranslationList["errorModernApps"];
                 _repairMessage = Options.TranslationList["resetMessage"];
+                _uwpRestoreMessage = Options.TranslationList["restoreUwpMessage"];
                 _flushDNSMessage = Options.TranslationList["flushDNSMessage"];
 
                 listStartupItems.Columns[0].Text = translationList["startupItemName"];
@@ -2320,7 +2322,7 @@ namespace Optimizer
 
             if (selectedApps.Count <= 0) return;
 
-            if (MessageBox.Show(_removeModernAppsMessage + "\n\n" + string.Join(Environment.NewLine, selectedApps), "Optimizer", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
+            if (MessageBox.Show(_removeModernAppsMessage, "Optimizer", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
             {
                 uninstallModernAppsButton.Enabled = false;
                 refreshModernAppsButton.Enabled = false;
@@ -4639,5 +4641,13 @@ namespace Optimizer
             sf.SetTip(translationList["lblLab"].ToString());
             sf.ShowDialog(this);
         }
+
+        private void btnRestoreUwp_Click(object sender, EventArgs e)
+        {
+            if (MessageBox.Show(_uwpRestoreMessage, "Optimizer", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
+            {
+                UWPHelper.RestoreAllUWPApps();
+            }
+        }
     }
 }

+ 1 - 1
Optimizer/Forms/MainForm.resx

@@ -722,7 +722,7 @@ any application only by typing your desired keyword.</value>
         AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
         LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
         ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAC0
-        GgAAAk1TRnQBSQFMAgEBCQEAAUgBDQFIAQ0BIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA
+        GgAAAk1TRnQBSQFMAgEBCQEAAYABDQGAAQ0BIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA
         AwABYAMAAQEBAAEgBgABwP8A/wD/AP8A/wD/AP8A/wAeAANHAYB0//8AiQADRwGAdP//AIkAAyoBQANH
         AYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGAA0cBgANH
         AYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGAA0cBgANHAYADRwGA/wD/AP8A

+ 1 - 1
Optimizer/Forms/SplashForm.Designer.cs

@@ -81,7 +81,7 @@ namespace Optimizer
         }
 
         #endregion
-        protected internal System.Windows.Forms.Label LoadingStatus;
+        internal System.Windows.Forms.Label LoadingStatus;
         private System.Windows.Forms.PictureBox pictureBox2;
     }
 }

+ 1 - 1
Optimizer/Optimizer.csproj

@@ -9,7 +9,7 @@
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <RootNamespace>Optimizer</RootNamespace>
     <AssemblyName>Optimizer</AssemblyName>
-    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
+    <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
     <IsWebBootstrapper>false</IsWebBootstrapper>

+ 1 - 1
Optimizer/Program.cs

@@ -14,7 +14,7 @@ namespace Optimizer
         /* DO NOT LEAVE THEM EMPTY */
 
         internal readonly static float Major = 14;
-        internal readonly static float Minor = 7;
+        internal readonly static float Minor = 8;
 
         internal readonly static bool EXPERIMENTAL_BUILD = false;
         internal static int DPI_PREFERENCE;

+ 8 - 9
Optimizer/Properties/Resources.Designer.cs

@@ -79,7 +79,7 @@ namespace Optimizer.Properties {
         ///[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWithCMD\command]
         ///@=&quot;cmd.exe /s /k pushd \&quot;%V\&quot;&quot;
         ///
-        ///[HKEY_CLASSES_ROOT\Drive\shell\OpenWit [rest of string was truncated]&quot;;.
+        ///[HKEY_CLASSES_ROOT\D [rest of string was truncated]&quot;;.
         /// </summary>
         internal static string AddOpenWithCMD {
             get {
@@ -257,8 +257,7 @@ namespace Optimizer.Properties {
         ///rem &quot;DisableAntiSpyware&quot; is discontinued and will be ignored on client devices, as of the August 2020 (version 4.18.2007.8) update to Microsoft Defender Antivirus.
         ///
         ///rem Disable Tamper Protection First !!!!!
-        ///rem https://www.tenforums.com/tutorials/123792-turn-off-tamper-protection-windows-defender-antivirus.html
-        ///reg [rest of string was truncated]&quot;;.
+        ///rem https://www.tenforums.com/tutorials/123792-turn-off-tamper-protection-windows-defender-antivirus.ht [rest of string was truncated]&quot;;.
         /// </summary>
         internal static string DisableDefenderSafeMode1903Plus {
             get {
@@ -281,7 +280,7 @@ namespace Optimizer.Properties {
         ///&quot;xlsolution&quot;=dword:00000001
         /// 
         ///[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>
         internal static string DisableOfficeTelemetry {
             get {
@@ -297,7 +296,7 @@ namespace Optimizer.Properties {
         ///
         ///schtasks /end /tn &quot;\Microsoft\Office\OfficeTelemetryAgentFallBack&quot;
         ///schtasks /change /tn &quot;\Microsoft\Office\OfficeTelemetryAgentFallBack&quot; /disable
-        ///schtasks /end /tn &quot;\Microsoft\Office\OfficeTelemetryAgentLogOn&quot; [rest of string was truncated]&quot;;.
+        ///schtasks /end /tn &quot;\Microsoft\Office\OfficeTelemetryAgen [rest of string was truncated]&quot;;.
         /// </summary>
         internal static string DisableOfficeTelemetryTasks {
             get {
@@ -311,7 +310,7 @@ namespace Optimizer.Properties {
         ///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 /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>
         internal static string DisableTelemetryTasks {
             get {
@@ -456,7 +455,7 @@ namespace Optimizer.Properties {
         ///schtasks /change /tn &quot;\Microsoft\Office\OfficeTelemetryAgentLogOn&quot; /enable
         ///
         ///reg add &quot;HKCU\SOFTWARE\Microsoft\Office\15.0\Outlook\Options\Mail&quot; /v &quot;EnableLogging&quot; /t REG_DWORD /d 1 /f
-        ///reg add &quot;HKCU\SOFTWARE\Microsoft\Office\16.0\Outlook\Options\Mail&quot; /v &quot;EnableLogging&quot; /t  [rest of string was truncated]&quot;;.
+        ///reg add &quot;HKCU\SOFTWARE\Microsoft\Office\16.0\Outlook\Options\Mail&quot; /v &quot;EnableLoggi [rest of string was truncated]&quot;;.
         /// </summary>
         internal static string EnableOfficeTelemetryTasks {
             get {
@@ -470,7 +469,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\UsbCeip&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>
         internal static string EnableTelemetryTasks {
             get {
@@ -640,7 +639,7 @@ namespace Optimizer.Properties {
         ///&quot;NoWorkingDirectory&quot;=&quot;&quot;
         ///
         ///[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>
         internal static string InstallTakeOwnership {
             get {

+ 1 - 1
Optimizer/Properties/Settings.Designer.cs

@@ -12,7 +12,7 @@ namespace Optimizer.Properties {
     
     
     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.0.0")]
     internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
         
         private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

+ 3 - 1
Optimizer/Resources/i18n/AR.json

@@ -437,5 +437,7 @@
 	"winSearchSw": "تعطيل خدمة بحث",
 	"winSearchTip": "عطيل خدمة بحث Windows.",
 	"storeUpdatesSw": "تعطيل تحديثات متجر Microsoft",
-	"storeUpdatesTip": "تعطيل وظيفة التحديثات التلقائية لـ Microsoft Store."
+	"storeUpdatesTip": "تعطيل وظيفة التحديثات التلقائية لـ Microsoft Store.",
+	"btnRestoreUwp": "ستعادة كل UWP",
+	"restoreUwpMessage": "هل انت متأكد من أنك تريد أن تفعل هذا؟"
 }

+ 3 - 1
Optimizer/Resources/i18n/CN.json

@@ -435,5 +435,7 @@
 	"winSearchSw": "禁用搜索",
 	"winSearchTip": "禁用 Windows 搜索服务。",
 	"storeUpdatesSw": "禁用 Microsoft Store 更新",
-	"storeUpdatesTip": "禁用 Microsoft Store 自动更新功能。"
+	"storeUpdatesTip": "禁用 Microsoft Store 自动更新功能。",
+	"btnRestoreUwp": "恢复所有 UWP",
+	"restoreUwpMessage": "你确定要这么做吗?"
 }

+ 3 - 1
Optimizer/Resources/i18n/CZ.json

@@ -437,5 +437,7 @@ Má to negativní vliv na výkon.",
 	"winSearchSw": "Zakázat vyhledávání",
 	"winSearchTip": "Zakáže vyhledávací službu systému Windows.",
 	"storeUpdatesSw": "Zakázat aktualizace Microsoft Store",
-	"storeUpdatesTip": "Zakáže funkci automatických aktualizací Microsoft Store."
+	"storeUpdatesTip": "Zakáže funkci automatických aktualizací Microsoft Store.",
+	"btnRestoreUwp": "Obnovte všechny UWP",
+	"restoreUwpMessage": "Opravdu to chcete udělat?"
 }

+ 3 - 1
Optimizer/Resources/i18n/DE.json

@@ -413,5 +413,7 @@ Es wirkt sich negativ auf die Leistung aus.",
 	"winSearchSw": "Suche deaktivieren",
 	"winSearchTip": "Deaktiviert den Windows-Suchdienst.",
 	"storeUpdatesSw": "Deaktivieren Sie Microsoft Store-Updates",
-	"storeUpdatesTip": "Deaktiviert die Funktion für automatische Updates im Microsoft Store."
+	"storeUpdatesTip": "Deaktiviert die Funktion für automatische Updates im Microsoft Store.",
+	"btnRestoreUwp": "Stellen Sie alle UWP wieder her",
+	"restoreUwpMessage": "Sind Sie sicher, dass Sie dies tun möchten?"
 }

+ 3 - 1
Optimizer/Resources/i18n/EL.json

@@ -432,5 +432,7 @@
 	"winSearchSw": "Απενεργοποίηση Αναζήτησης",
 	"winSearchTip": "Απενεργοποιεί την υπηρεσία αναζήτησης που είναι υπεύθυνη για την αναζήτηση αρχείων.",
 	"storeUpdatesSw": "Απενεργοποίηση Ενημερώσεων Microsoft Store",
-	"storeUpdatesTip": "Απενεργοποιεί τις ενημερώσεις του Microsoft Store."
+	"storeUpdatesTip": "Απενεργοποιεί τις ενημερώσεις του Microsoft Store.",
+	"btnRestoreUwp": "Επαναφορά όλων των UWP",
+	"restoreUwpMessage": "Είστε σίγουροι ότι θέλετε να επαναφέρετε όλες τις εφαρμογές UWP;"
 }

+ 3 - 1
Optimizer/Resources/i18n/EN.json

@@ -437,5 +437,7 @@ Disabling it can reduce I/O operations on the disks.",
 	"vbsTip": "Kernel feature that prevents malicious drivers injection into processes.
 It has negative effect on performance.",
 	"winSearchSw": "Disable Search",
-	"winSearchTip": "Disables Windows search service."
+	"winSearchTip": "Disables Windows search service.",
+	"btnRestoreUwp": "Restore all UWP",
+	"restoreUwpMessage": "Are you sure you want to do this?"
 }

+ 3 - 1
Optimizer/Resources/i18n/ES.json

@@ -434,5 +434,7 @@ Tiene un efecto negativo en el rendimiento.",
 	"winSearchSw": "Deshabilitar búsqueda",
 	"winSearchTip": "Desactiva el servicio de búsqueda de Windows.",
 	"storeUpdatesSw": "Deshabilitar las actualizaciones de la tienda de Microsoft",
-	"storeUpdatesTip": "Deshabilita la funcionalidad de actualizaciones automáticas de Microsoft Store."
+	"storeUpdatesTip": "Deshabilita la funcionalidad de actualizaciones automáticas de Microsoft Store.",
+	"btnRestoreUwp": "Restaurar todo UWP",
+	"restoreUwpMessage": "¿Seguro que quieres hacer esto?"
 }

+ 3 - 1
Optimizer/Resources/i18n/FR.json

@@ -434,5 +434,7 @@ Cela a un effet négatif sur les performances.",
 	"winSearchSw": "Désactiver la recherche",
 	"winSearchTip": "Désactive le service de recherche Windows.",
 	"storeUpdatesSw": "Désactiver les mises à jour du Microsoft Store",
-	"storeUpdatesTip": "Désactive la fonctionnalité de mises à jour automatiques de Microsoft Store."
+	"storeUpdatesTip": "Désactive la fonctionnalité de mises à jour automatiques de Microsoft Store.",
+	"btnRestoreUwp": "Restaurer tous les UWP",
+	"restoreUwpMessage": "Es-tu sûr de vouloir faire ça?"
 }

+ 3 - 1
Optimizer/Resources/i18n/HU.json

@@ -437,5 +437,7 @@ Negatív hatással van a teljesítményre.",
 	"winSearchSw": "Keresés letiltása",
 	"winSearchTip": "Letiltja a Windows keresőszolgáltatást.",
 	"storeUpdatesSw": "A Microsoft Store frissítéseinek letiltása",
-	"storeUpdatesTip": "Letiltja a Microsoft Store automatikus frissítési funkcióját."
+	"storeUpdatesTip": "Letiltja a Microsoft Store automatikus frissítési funkcióját.",
+	"btnRestoreUwp": "Állítsa vissza az összes UWP",
+	"restoreUwpMessage": "Biztosan ezt akarod csinálni?"
 }

+ 3 - 1
Optimizer/Resources/i18n/IT.json

@@ -432,5 +432,7 @@ Ha un effetto negativo sulle prestazioni.",
 	"winSearchSw": "Disabilita la ricerca",
 	"winSearchTip": "Disabilita il servizio di ricerca di Windows.",
 	"storeUpdatesSw": "Disabilita gli aggiornamenti di Microsoft Store",
-	"storeUpdatesTip": "Disabilita la funzionalità degli aggiornamenti automatici di Microsoft Store."
+	"storeUpdatesTip": "Disabilita la funzionalità degli aggiornamenti automatici di Microsoft Store.",
+	"btnRestoreUwp": "Ripristina tutta la piattaforma UWP",
+	"restoreUwpMessage": "Sei sicuro di volerlo fare?"
 }

+ 3 - 1
Optimizer/Resources/i18n/KO.json

@@ -437,5 +437,7 @@ Microsoft 계정 로그인이 필요합니다.",
 	"winSearchSw": "검색 비활성화",
 	"winSearchTip": "Windows 검색 서비스를 비활성화합니다.",
 	"storeUpdatesSw": "Microsoft Store 업데이트 비활성화",
-	"storeUpdatesTip": "Microsoft Store 자동 업데이트 기능을 비활성화합니다."
+	"storeUpdatesTip": "Microsoft Store 자동 업데이트 기능을 비활성화합니다.",
+	"btnRestoreUwp": "모든 UWP 복원",
+	"restoreUwpMessage": "이 작업을 수행하시겠습니까?"
 }

+ 3 - 1
Optimizer/Resources/i18n/KU.json

@@ -436,5 +436,7 @@
 	"winSearchSw": "گەڕان لەکاربخە",
 	"winSearchTip": "خزمەتگوزاری گەڕانی ویندۆز لەکاردەخات.",
 	"storeUpdatesSw": "نوێکارییەکانی فرۆشگای مایکرۆسۆفت لەکاربخە",
-	"storeUpdatesTip": "کارایی نوێکردنەوەی ئۆتۆماتیکی فرۆشگای مایکرۆسۆفت لەکاردەخات."
+	"storeUpdatesTip": "کارایی نوێکردنەوەی ئۆتۆماتیکی فرۆشگای مایکرۆسۆفت لەکاردەخات.",
+	"btnRestoreUwp": "هەموو UWP بگەڕێنەرەوە",
+	"restoreUwpMessage": "دڵنیای کە دەتەوێت ئەم کارە بکەیت؟"
 }

+ 3 - 1
Optimizer/Resources/i18n/NL.json

@@ -388,5 +388,7 @@ Het heeft een negatief effect op de prestaties.",
    "winSearchSw": "Schakel Zoeken uit",
    "winSearchTip": "Schakelt de Windows-zoekservice uit.",
    "storeUpdatesSw": "Schakel Microsoft Store-updates uit",
-	"storeUpdatesTip": "Schakelt de functionaliteit voor automatische updates van de Microsoft Store uit."
+	"storeUpdatesTip": "Schakelt de functionaliteit voor automatische updates van de Microsoft Store uit.",
+   "btnRestoreUwp": "Herstel alle UWP",
+	"restoreUwpMessage": "Weet je zeker dat je dit wilt doen?"
 }

+ 3 - 1
Optimizer/Resources/i18n/PL.json

@@ -433,5 +433,7 @@ Ma negatywny wpływ na wydajność.",
 	"winSearchSw": "Wyłącz wyszukiwanie",
 	"winSearchTip": "Wyłącza usługę wyszukiwania systemu Windows.",
 	"storeUpdatesSw": "Wyłącz aktualizacje Microsoft Store",
-	"storeUpdatesTip": "Wyłącza funkcję automatycznych aktualizacji Microsoft Store."
+	"storeUpdatesTip": "Wyłącza funkcję automatycznych aktualizacji Microsoft Store.",
+	"btnRestoreUwp": "Przywróć wszystkie platformy UWP",
+	"restoreUwpMessage": "Czy na pewno chcesz to zrobić?"
 }

+ 3 - 1
Optimizer/Resources/i18n/PT.json

@@ -434,5 +434,7 @@ Tem efeito negativo no desempenho.",
 	"winSearchSw": "Desativar pesquisa",
 	"winSearchTip": "Desativa o serviço de pesquisa do Windows.",
 	"storeUpdatesSw": "Desativar atualizações da Microsoft Store",
-	"storeUpdatesTip": "Desativa a funcionalidade de atualizações automáticas da Microsoft Store."
+	"storeUpdatesTip": "Desativa a funcionalidade de atualizações automáticas da Microsoft Store.",
+	"btnRestoreUwp": "Restaurar todos os UWP",
+	"restoreUwpMessage": "Você tem certeza de que quer fazer isso?"
 }

+ 3 - 1
Optimizer/Resources/i18n/RO.json

@@ -419,5 +419,7 @@ Are un efect negativ asupra performanței.",
 	"winSearchw": "Dezactivați căutarea",
 	"winSearchTip": "Dezactivează serviciul de căutare Windows.",
 	"storeUpdatesSw": "Dezactivați actualizările Microsoft Store",
-	"storeUpdatesTip": "Dezactivează funcționalitatea de actualizări automate din Microsoft Store."
+	"storeUpdatesTip": "Dezactivează funcționalitatea de actualizări automate din Microsoft Store.",
+	"btnRestoreUwp": "Restaurați toate UWP",
+	"restoreUwpMessage": "Ești sigur că vrei să faci asta?"
 }

+ 3 - 1
Optimizer/Resources/i18n/RU.json

@@ -437,5 +437,7 @@
 	"winSearchSw": "Отключить поиск",
 	"winSearchTip": "Отключает службу поиска Windows.",
 	"storeUpdatesSw": "Отключить обновления магазина Microsoft",
-	"storeUpdatesTip": "Отключает функцию автоматического обновления Microsoft Store."
+	"storeUpdatesTip": "Отключает функцию автоматического обновления Microsoft Store.",
+	"btnRestoreUwp": "Восстановить все UWP",
+	"restoreUwpMessage": "Вы уверены, что хотите это сделать?"
 }

+ 3 - 1
Optimizer/Resources/i18n/TR.json

@@ -435,5 +435,7 @@ Performansa olumsuz etkisi vardır.",
 	"winSearchSw": "Aramayı Devre Dışı Bırak",
 	"winSearchTip": "Windows arama hizmetini devre dışı bırakır.",
 	"storeUpdatesSw": "Microsoft Store Güncellemelerini Devre Dışı Bırak",
-	"storeUpdatesTip": "Microsoft Mağazası otomatik güncellemeler işlevini devre dışı bırakır."
+	"storeUpdatesTip": "Microsoft Mağazası otomatik güncellemeler işlevini devre dışı bırakır.",
+	"btnRestoreUwp": "Tüm UWP'yi geri yükle",
+	"restoreUwpMessage": "Bunu yapmak istediğinizden emin misiniz?"
 }

+ 3 - 1
Optimizer/Resources/i18n/TW.json

@@ -435,5 +435,7 @@
 	"winSearchSw": "禁用搜索",
 	"winSearchTip": "禁用 Windows 搜索服務。",
 	"storeUpdatesSw": "禁用 Microsoft Store 更新",
-	"storeUpdatesTip": "禁用 Microsoft Store 自動更新功能。"
+	"storeUpdatesTip": "禁用 Microsoft Store 自動更新功能。",
+	"btnRestoreUwp": "恢復所有 UWP",
+	"restoreUwpMessage": "你確定要這麼做嗎?"
 }

+ 3 - 1
Optimizer/Resources/i18n/UA.json

@@ -439,5 +439,7 @@
 	"winSearchSw": "Вимкнути пошук",
 	"winSearchTip": "Вимкнення служби пошуку Windows.",
 	"storeUpdatesSw": "Вимкніть оновлення Microsoft Store",
-	"storeUpdatesTip": "Вимикає функцію автоматичного оновлення Microsoft Store."
+	"storeUpdatesTip": "Вимикає функцію автоматичного оновлення Microsoft Store.",
+	"btnRestoreUwp": "Відновити всі UWP",
+	"restoreUwpMessage": "Ви впевнені, що хочете це зробити?"
 }

+ 11 - 3
Optimizer/UWPHelper.cs

@@ -37,9 +37,7 @@ namespace Optimizer
             using (PowerShell script = PowerShell.Create())
             {
                 script.AddScript(string.Format("Get-AppxPackage -AllUsers '{0}' | Remove-AppxPackage", appName));
-
                 script.Invoke();
-
                 return script.Streams.Error.Count > 0;
 
                 // not working on Windows 7 anymore
@@ -47,6 +45,16 @@ namespace Optimizer
             }
         }
 
-        // TODO: Reinstall default pre-installed apps
+        internal static bool RestoreAllUWPApps()
+        {
+            string cmd = "Get-AppxPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register \"$($_.InstallLocation)\\AppXManifest.xml\"}";
+
+            using (PowerShell script = PowerShell.Create())
+            {
+                script.AddScript(cmd);
+                script.Invoke();
+                return script.Streams.Error.Count > 0;
+            }
+        }
     }
 }

+ 5 - 5
README.md

@@ -3,7 +3,7 @@
 </p> 
 
 <p align="center">
-	<a href="https://github.com/hellzerg/optimizer/releases/download/14.7/Optimizer-14.7.exe" target="_blank">
+	<a href="https://github.com/hellzerg/optimizer/releases/download/14.8/Optimizer-14.8.exe" target="_blank">
 		<img src="https://raw.githubusercontent.com/hellzerg/optimizer/master/download-button.png">
 		<br>
 		<img src="https://raw.githubusercontent.com/hellzerg/optimizer/master/flags.png">
@@ -79,7 +79,7 @@ https://github.com/hellzerg/optimizer/blob/master/LEGACY.md
 
 ### 💻 Compatibility: ###
 
-* .NET Framework 4.5.2
+* .NET Framework 4.8
 * Compatible with Windows 7, 8, 8.1, 10, 11
 * Can run under Windows Server 2008, 2012, 2016, 2019, 2022 using ```/unsafe``` switch
 
@@ -87,9 +87,9 @@ https://github.com/hellzerg/optimizer/blob/master/LEGACY.md
 
 ### #️ Details: ###
 
-* Latest version: 14.7
-* Released: December 24, 2022
-* SHA256: B26EF2B482A98FA91D0EE63AC29D24252630AD79287E874272D9D9CF5DDDCD71
+* Latest version: 14.8
+* Released: January 7, 2023
+* SHA256: 3D535198EBF1E519E4F58C9AACA1B1E00C9B375C6F79CD3CCA5F0B70F0A3DCD5
 
 <hr>
 

+ 1 - 1
version.txt

@@ -1 +1 @@
-14.7
+14.8

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels