From ca12a3e183331c91de187fcf5f27f7e7918893e1 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Thu, 12 May 2022 00:30:19 +0300 Subject: [PATCH] The MS Store fix #2 --- SophiApp/SophiApp/Customisations/CustomisationConstants.cs | 3 ++- SophiApp/SophiApp/Customisations/CustomisationOs.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SophiApp/SophiApp/Customisations/CustomisationConstants.cs b/SophiApp/SophiApp/Customisations/CustomisationConstants.cs index c8d73cc0..a5d466bb 100644 --- a/SophiApp/SophiApp/Customisations/CustomisationConstants.cs +++ b/SophiApp/SophiApp/Customisations/CustomisationConstants.cs @@ -226,7 +226,7 @@ internal static class CustomisationConstants internal const byte _502_TEAMS_ENABLED_VALUE = 2; internal const string _502_TEAMS_STARTUP_PATH = @"Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\MicrosoftTeams_8wekyb3d8bbwe\TeamsStartupTask"; internal const string _502_UWP_MICROSOFT_TEAMS = "MicrosoftTeams"; - internal const string _504_MICROSOFT_STORE_RESET = "wsreset -i"; + internal const string _504_MICROSOFT_STORE_RESET = "-i"; internal const string _600_APP_CAPTURE = "AppCaptureEnabled"; internal const string _600_GAME_CONFIG_PATH = @"System\GameConfigStore"; internal const string _600_GAME_DVR = "GameDVR_Enabled"; @@ -688,6 +688,7 @@ public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow) internal const string WIN_VER_PRO = "Professional"; internal const string WINDOWS_MITIGATION_PATH = @"SOFTWARE\Microsoft\WindowsMitigation"; internal const string WINLOGON_PATH = @"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"; + internal const string WSRESET_EXE = "WSreset.exe"; internal const string WUSA_EXE = "wusa.exe"; internal const string X64 = "x64"; internal static readonly string _203_WIN10_EXPLORER_INPROC_PATH = $@"{_203_WIN10_EXPLORER_PATH}\InprocServer32"; diff --git a/SophiApp/SophiApp/Customisations/CustomisationOs.cs b/SophiApp/SophiApp/Customisations/CustomisationOs.cs index dbdbba01..a8f82712 100644 --- a/SophiApp/SophiApp/Customisations/CustomisationOs.cs +++ b/SophiApp/SophiApp/Customisations/CustomisationOs.cs @@ -976,7 +976,7 @@ public static void _502(bool IsChecked) => RegHelper.SetValue(RegistryHive.Curre : _502_TEAMS_DISABLED_VALUE, RegistryValueKind.DWord); - public static void _504(bool _) => ProcessHelper.Start(processName: POWERSHELL_EXE, args: _504_MICROSOFT_STORE_RESET); + public static void _504(bool _) => ProcessHelper.Start(processName: WSRESET_EXE, args: _504_MICROSOFT_STORE_RESET); public static void _600(bool IsChecked) {