diff --git a/Wrapper/Localizations/de-DE/ui.json b/Wrapper/Localizations/de-DE/ui.json index 46895517..09cdb6df 100644 --- a/Wrapper/Localizations/de-DE/ui.json +++ b/Wrapper/Localizations/de-DE/ui.json @@ -6,6 +6,7 @@ "menuImportPreset": "Voreinstellung importieren", "menuExportPreset": "Voreinstellung exportieren", "menuAutosave": "Automatisches Speichern", + "menuPresets": "Voreinstellungen", "menuOpposite": "Alle umkehren", "menuClear": "Löschen", "menuClearTab": "Registerkarte löschen", diff --git a/Wrapper/Localizations/en-US/ui.json b/Wrapper/Localizations/en-US/ui.json index c35ea439..74d17ead 100644 --- a/Wrapper/Localizations/en-US/ui.json +++ b/Wrapper/Localizations/en-US/ui.json @@ -6,6 +6,7 @@ "menuImportPreset": "Import Preset", "menuExportPreset": "Export Preset", "menuAutosave": "Autosave", + "menuPresets": "Presets", "menuOpposite": "Opposite", "menuClear": "Clear", "menuClearTab": "Clear Tab", diff --git a/Wrapper/Localizations/ru-RU/ui.json b/Wrapper/Localizations/ru-RU/ui.json index 2b4b8a0e..521ef874 100644 --- a/Wrapper/Localizations/ru-RU/ui.json +++ b/Wrapper/Localizations/ru-RU/ui.json @@ -6,6 +6,7 @@ "menuImportPreset": "Импортировать пресет", "menuExportPreset": "Экспортировать пресет", "menuAutosave": "Автосохранение", + "menuPresets": "Пресеты", "menuOpposite": "Противоположные значения", "menuClear": "Очистить", "menuClearTab": "Очистить вкладку", diff --git a/Wrapper/SophiaScriptWrapper.exe b/Wrapper/SophiaScriptWrapper.exe index 3b74b17c..78a4f300 100644 Binary files a/Wrapper/SophiaScriptWrapper.exe and b/Wrapper/SophiaScriptWrapper.exe differ diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index a71c23f3..4eb25459 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -5261,7 +5261,7 @@ public static bool MarkFileDelete (string sourcefile) } else { - Start-Process -FilePath explorer -ArgumentList $env:OneDrive + Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $env:OneDrive } } @@ -5289,7 +5289,7 @@ public static bool MarkFileDelete (string sourcefile) $FileSyncShell64dlls = Get-ChildItem -Path "$OneDriveFolder\*\FileSyncShell64.dll" -Force foreach ($FileSyncShell64dll in $FileSyncShell64dlls.FullName) { - Start-Process -FilePath regsvr32.exe -ArgumentList "/u /s $FileSyncShell64dll" -Wait + Start-Process -FilePath "$env:SystemRoot\System32\regsvr32.exe" -ArgumentList "/u /s $FileSyncShell64dll" -Wait Remove-Item -Path $FileSyncShell64dll -Force -ErrorAction Ignore if (Test-Path -Path $FileSyncShell64dll) @@ -5305,7 +5305,7 @@ public static bool MarkFileDelete (string sourcefile) } # We need to wait for a few seconds to let explore launch unless it will fail to do so - Start-Process -FilePath explorer + Start-Process -FilePath "$env:SystemRoot\explorer.exe" Start-Sleep -Seconds 3 $Path = @( @@ -15119,7 +15119,7 @@ public static void PostMessage() { if (Test-Path -Path $Script:OpenedFolder) { - Start-Process -FilePath explorer -ArgumentList $Script:OpenedFolder + Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $Script:OpenedFolder } } } diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index 9dc0bb3a..586b9124 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -11666,7 +11666,7 @@ public static void PostMessage() { if (Test-Path -Path $Script:OpenedFolder) { - Start-Process -FilePath explorer -ArgumentList $Script:OpenedFolder + Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $Script:OpenedFolder } } } diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 761a1def..a6ad3b6a 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -13055,7 +13055,7 @@ public static void PostMessage() { if (Test-Path -Path $Script:OpenedFolder) { - Start-Process -FilePath explorer -ArgumentList $Script:OpenedFolder + Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $Script:OpenedFolder } } } diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index d8557e64..f5e27747 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -5295,7 +5295,7 @@ public static bool MarkFileDelete (string sourcefile) } else { - Start-Process -FilePath explorer -ArgumentList $env:OneDrive + Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $env:OneDrive } } @@ -5323,7 +5323,7 @@ public static bool MarkFileDelete (string sourcefile) $FileSyncShell64dlls = Get-ChildItem -Path "$OneDriveFolder\*\FileSyncShell64.dll" -Force foreach ($FileSyncShell64dll in $FileSyncShell64dlls.FullName) { - Start-Process -FilePath regsvr32.exe -ArgumentList "/u /s $FileSyncShell64dll" -Wait + Start-Process -FilePath "$env:SystemRoot\System32\regsvr32.exe" -ArgumentList "/u /s $FileSyncShell64dll" -Wait Remove-Item -Path $FileSyncShell64dll -Force -ErrorAction Ignore if (Test-Path -Path $FileSyncShell64dll) @@ -5339,7 +5339,7 @@ public static bool MarkFileDelete (string sourcefile) } # We need to wait for a few seconds to let explore launch unless it will fail to do so - Start-Process -FilePath explorer + Start-Process -FilePath "$env:SystemRoot\explorer.exe" Start-Sleep -Seconds 3 $Path = @( @@ -15163,7 +15163,7 @@ public static void PostMessage() { if (Test-Path -Path $Script:OpenedFolder) { - Start-Process -FilePath explorer -ArgumentList $Script:OpenedFolder + Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $Script:OpenedFolder } } } diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index 9d17e35e..478a38d7 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -375,8 +375,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); $Parameters = @{ Uri = "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/update_v6.txt" UseBasicParsing = $true - Verbose = $true - } + Verbose = $true + } $update_v6 = (Invoke-WebRequest @Parameters).Content $IPArray += $extra, $extra_v6, $spy, $spy_v6, $update, $update_v6 @@ -4871,7 +4871,7 @@ public static bool MarkFileDelete (string sourcefile) } else { - Start-Process -FilePath explorer -ArgumentList $env:OneDrive + Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $env:OneDrive } } @@ -4899,7 +4899,7 @@ public static bool MarkFileDelete (string sourcefile) $FileSyncShell64dlls = Get-ChildItem -Path "$OneDriveFolder\*\FileSyncShell64.dll" -Force foreach ($FileSyncShell64dll in $FileSyncShell64dlls.FullName) { - Start-Process -FilePath regsvr32.exe -ArgumentList "/u /s $FileSyncShell64dll" -Wait + Start-Process -FilePath "$env:SystemRoot\System32\regsvr32.exe" -ArgumentList "/u /s $FileSyncShell64dll" -Wait Remove-Item -Path $FileSyncShell64dll -Force -ErrorAction Ignore if (Test-Path -Path $FileSyncShell64dll) @@ -4915,7 +4915,7 @@ public static bool MarkFileDelete (string sourcefile) } # We need to wait for a few seconds to let explore launch unless it will fail to do so - Start-Process -FilePath explorer + Start-Process -FilePath "$env:SystemRoot\explorer.exe" Start-Sleep -Seconds 3 $Path = @( @@ -14153,7 +14153,7 @@ public static void PostMessage() { if (Test-Path -Path $Script:OpenedFolder) { - Start-Process -FilePath explorer -ArgumentList $Script:OpenedFolder + Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $Script:OpenedFolder } } } diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 index ff26bc1a..17518bed 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 @@ -13047,7 +13047,7 @@ public static void PostMessage() { if (Test-Path -Path $Script:OpenedFolder) { - Start-Process -FilePath explorer -ArgumentList $Script:OpenedFolder + Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $Script:OpenedFolder } } } diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index 00fc7b4d..14ca8072 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -4905,7 +4905,7 @@ public static bool MarkFileDelete (string sourcefile) } else { - Start-Process -FilePath explorer -ArgumentList $env:OneDrive + Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $env:OneDrive } } @@ -4933,7 +4933,7 @@ public static bool MarkFileDelete (string sourcefile) $FileSyncShell64dlls = Get-ChildItem -Path "$OneDriveFolder\*\FileSyncShell64.dll" -Force foreach ($FileSyncShell64dll in $FileSyncShell64dlls.FullName) { - Start-Process -FilePath regsvr32.exe -ArgumentList "/u /s $FileSyncShell64dll" -Wait + Start-Process -FilePath "$env:SystemRoot\System32\regsvr32.exe" -ArgumentList "/u /s $FileSyncShell64dll" -Wait Remove-Item -Path $FileSyncShell64dll -Force -ErrorAction Ignore if (Test-Path -Path $FileSyncShell64dll) @@ -4949,7 +4949,7 @@ public static bool MarkFileDelete (string sourcefile) } # We need to wait for a few seconds to let explore launch unless it will fail to do so - Start-Process -FilePath explorer + Start-Process -FilePath "$env:SystemRoot\explorer.exe" Start-Sleep -Seconds 3 $Path = @( @@ -14197,7 +14197,7 @@ public static void PostMessage() { if (Test-Path -Path $Script:OpenedFolder) { - Start-Process -FilePath explorer -ArgumentList $Script:OpenedFolder + Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $Script:OpenedFolder } } }