From fedb9d9d7ee03f28a5b6622fc50631335a5144ee Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Sun, 28 May 2023 17:05:12 +0300 Subject: [PATCH] Fixed Wrapper configs --- Wrapper/Config/config_Windows_10.json | 38 ++++++++++++-- Wrapper/Config/config_Windows_10_LTSC.json | 52 ++++++++++++++++--- Wrapper/Config/config_Windows_11.json | 40 +++++++++++--- .../de-DE/tooltip_Windows_10.json | 32 ++++++++++-- .../de-DE/tooltip_Windows_11.json | 34 +++++++++--- .../en-US/tooltip_Windows_10.json | 32 ++++++++++-- .../en-US/tooltip_Windows_11.json | 34 +++++++++--- .../ru-RU/tooltip_Windows_10.json | 32 ++++++++++-- .../ru-RU/tooltip_Windows_11.json | 40 ++++++++++---- src/Sophia_Script_for_Windows_10/Sophia.ps1 | 14 +++-- .../Sophia.ps1 | 14 +++-- .../Sophia.ps1 | 14 +++-- .../Sophia.ps1 | 14 +++-- src/Sophia_Script_for_Windows_11/Sophia.ps1 | 14 +++-- .../Sophia.ps1 | 14 +++-- 15 files changed, 334 insertions(+), 84 deletions(-) diff --git a/Wrapper/Config/config_Windows_10.json b/Wrapper/Config/config_Windows_10.json index a6adc3a7..b341c79d 100644 --- a/Wrapper/Config/config_Windows_10.json +++ b/Wrapper/Config/config_Windows_10.json @@ -1629,7 +1629,7 @@ "Region": "System", "Control": "chk", "Required": "false", - "Function": "UninstallPCHealthCheck", + "Function": "Export-Associations", "Arg": { "Zero": { "Tag": "" @@ -1643,7 +1643,7 @@ "Region": "System", "Control": "chk", "Required": "false", - "Function": "InstallVCRedist", + "Function": "Import-Associations", "Arg": { "Zero": { "Tag": "" @@ -1657,6 +1657,34 @@ "Region": "System", "Control": "chk", "Required": "false", + "Function": "UninstallPCHealthCheck", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Id": 539, + "Region": "System", + "Control": "chk", + "Required": "false", + "Function": "InstallVCRedist", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "", + "WindowsDefault": "" + }, + { + "Id": 540, + "Region": "System", + "Control": "chk", + "Required": "false", "Function": "InstallDotNetRuntimes", "Arg": { "Zero": { @@ -1667,7 +1695,7 @@ "WindowsDefault": "" }, { - "Id": 539, + "Id": 541, "Region": "System", "Control": "cmb", "Required": "false", @@ -1684,7 +1712,7 @@ "WindowsDefault": "One" }, { - "Id": 540, + "Id": 542, "Region": "System", "Control": "cmb", "Required": "false", @@ -1701,7 +1729,7 @@ "WindowsDefault": "One" }, { - "Id": 541, + "Id": 543, "Region": "System", "Control": "cmb", "Required": "false", diff --git a/Wrapper/Config/config_Windows_10_LTSC.json b/Wrapper/Config/config_Windows_10_LTSC.json index 96e424a7..50e59f8b 100644 --- a/Wrapper/Config/config_Windows_10_LTSC.json +++ b/Wrapper/Config/config_Windows_10_LTSC.json @@ -1776,6 +1776,38 @@ "Region": "System", "Control": "chk", "Required": "false", + "Function": "Export-Associations", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "Zero", + "WindowsDefault": "", + "LTSC2019": "true", + "LTSC2021": "true" + }, + { + "Id": 537, + "Region": "System", + "Control": "chk", + "Required": "false", + "Function": "Import-Associations", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "", + "WindowsDefault": "", + "LTSC2019": "true", + "LTSC2021": "true" + }, + { + "Id": 538, + "Region": "System", + "Control": "chk", + "Required": "false", "Function": "InstallVCRedist", "Arg": { "Zero": { @@ -1788,7 +1820,7 @@ "LTSC2021": "true" }, { - "Id": 537, + "Id": 539, "Region": "System", "Control": "chk", "Required": "false", @@ -1804,7 +1836,7 @@ "LTSC2021": "true" }, { - "Id": 538, + "Id": 540, "Region": "System", "Control": "cmb", "Required": "false", @@ -1818,10 +1850,12 @@ } }, "Preset": "Zero", - "WindowsDefault": "One" + "WindowsDefault": "", + "LTSC2019": "true", + "LTSC2021": "true" }, { - "Id": 539, + "Id": 541, "Region": "System", "Control": "cmb", "Required": "false", @@ -1835,10 +1869,12 @@ } }, "Preset": "Zero", - "WindowsDefault": "One" + "WindowsDefault": "", + "LTSC2019": "true", + "LTSC2021": "true" }, { - "Id": 540, + "Id": 542, "Region": "System", "Control": "cmb", "Required": "false", @@ -1852,7 +1888,9 @@ } }, "Preset": "Zero", - "WindowsDefault": "One" + "WindowsDefault": "", + "LTSC2019": "true", + "LTSC2021": "true" }, { "Id": 600, diff --git a/Wrapper/Config/config_Windows_11.json b/Wrapper/Config/config_Windows_11.json index a3c40932..4ed117f3 100644 --- a/Wrapper/Config/config_Windows_11.json +++ b/Wrapper/Config/config_Windows_11.json @@ -1524,6 +1524,34 @@ { "Id": 537, "Region": "System", + "Control": "chk", + "Required": "false", + "Function": "Export-Associations", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Id": 538, + "Region": "System", + "Control": "chk", + "Required": "false", + "Function": "Import-Associations", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "", + "WindowsDefault": "" + }, + { + "Id": 539, + "Region": "System", "Control": "cmb", "Required": "false", "Function": "DefaultTerminalApp", @@ -1539,7 +1567,7 @@ "WindowsDefault": "One" }, { - "Id": 538, + "Id": 540, "Region": "System", "Control": "chk", "Required": "false", @@ -1553,7 +1581,7 @@ "WindowsDefault": "" }, { - "Id": 539, + "Id": 541, "Region": "System", "Control": "chk", "Required": "false", @@ -1567,7 +1595,7 @@ "WindowsDefault": "" }, { - "Id": 540, + "Id": 542, "Region": "System", "Control": "cmb", "Required": "false", @@ -1584,7 +1612,7 @@ "WindowsDefault": "One" }, { - "Id": 541, + "Id": 543, "Region": "System", "Control": "cmb", "Required": "false", @@ -1598,7 +1626,7 @@ "WindowsDefault": "" }, { - "Id": 542, + "Id": 544, "Region": "System", "Control": "cmb", "Required": "false", @@ -1615,7 +1643,7 @@ "WindowsDefault": "One" }, { - "Id": 543, + "Id": 545, "Region": "System", "Control": "cmb", "Required": "false", diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json index 110a5b2b..33aa5c01 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json @@ -1455,6 +1455,28 @@ { "Id": 536, "Region": "System", + "Function": "Export-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Exportieren Sie alle Windows-Verknüpfungen in die Datei Application_Associations.json in den Skriptstammordner." + } + } + }, + { + "Id": 537, + "Region": "System", + "Function": "Import-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Importieren Sie alle Windows-Zuordnungen aus einer JSON-Datei. Sie müssen alle Anwendungen gemäß einer exportierten JSON-Datei installieren, um alle Zuordnungen wiederherzustellen." + } + } + }, + { + "Id": 538, + "Region": "System", "Function": "UninstallPCHealthCheck", "Arg": { "Zero": { @@ -1464,7 +1486,7 @@ } }, { - "Id": 537, + "Id": 539, "Region": "System", "Function": "InstallVCRedist", "Arg": { @@ -1475,7 +1497,7 @@ } }, { - "Id": 538, + "Id": 540, "Region": "System", "Function": "InstallDotNetRuntimes", "Arg": { @@ -1486,7 +1508,7 @@ } }, { - "Id": 539, + "Id": 541, "Region": "System", "Function": "RKNBypass", "Arg": { @@ -1501,7 +1523,7 @@ } }, { - "Id": 540, + "Id": 542, "Region": "System", "Function": "PreventEdgeShortcutCreation", "Arg": { @@ -1516,7 +1538,7 @@ } }, { - "Id": 541, + "Id": 543, "Region": "System", "Function": "SATADrivesRemovableMedia", "Arg": { diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json index fe091cf8..8b093b9d 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json @@ -1350,6 +1350,28 @@ { "Id": 537, "Region": "System", + "Function": "Export-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Exportieren Sie alle Windows-Verknüpfungen in die Datei Application_Associations.json in den Skriptstammordner." + } + } + }, + { + "Id": 538, + "Region": "System", + "Function": "Import-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Importieren Sie alle Windows-Zuordnungen aus einer JSON-Datei. Sie müssen alle Anwendungen gemäß einer exportierten JSON-Datei installieren, um alle Zuordnungen wiederherzustellen." + } + } + }, + { + "Id": 539, + "Region": "System", "Function": "DefaultTerminalApp", "Arg": { "Zero": { @@ -1363,7 +1385,7 @@ } }, { - "Id": 538, + "Id": 540, "Region": "System", "Function": "InstallVCRedist", "Arg": { @@ -1374,7 +1396,7 @@ } }, { - "Id": 539, + "Id": 541, "Region": "System", "Function": "InstallDotNetRuntimes", "Arg": { @@ -1385,7 +1407,7 @@ } }, { - "Id": 540, + "Id": 542, "Region": "System", "Function": "RKNBypass", "Arg": { @@ -1400,7 +1422,7 @@ } }, { - "Id": 541, + "Id": 543, "Region": "System", "Function": "Install-WSA", "Arg": { @@ -1411,7 +1433,7 @@ } }, { - "Id": 542, + "Id": 544, "Region": "System", "Function": "PreventEdgeShortcutCreation", "Arg": { @@ -1426,7 +1448,7 @@ } }, { - "Id": 543, + "Id": 545, "Region": "System", "Function": "SATADrivesRemovableMedia", "Arg": { diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_10.json b/Wrapper/Localizations/en-US/tooltip_Windows_10.json index d49e8f59..1b043e2e 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_10.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_10.json @@ -1440,6 +1440,28 @@ { "Id": 536, "Region": "System", + "Function": "Export-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Export all Windows associations into Application_Associations.json file to script root folder." + } + } + }, + { + "Id": 537, + "Region": "System", + "Function": "Import-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Import all Windows associations from an Application_Associations.json file. You need to install all apps according to an exported Application_Associations.json file to restore all associations." + } + } + }, + { + "Id": 538, + "Region": "System", "Function": "UninstallPCHealthCheck", "Arg": { "Zero": { @@ -1449,7 +1471,7 @@ } }, { - "Id": 537, + "Id": 539, "Region": "System", "Function": "InstallVCRedist", "Arg": { @@ -1460,7 +1482,7 @@ } }, { - "Id": 538, + "Id": 540, "Region": "System", "Function": "InstallDotNetRuntimes", "Arg": { @@ -1471,7 +1493,7 @@ } }, { - "Id": 539, + "Id": 541, "Region": "System", "Function": "RKNBypass", "Arg": { @@ -1486,7 +1508,7 @@ } }, { - "Id": 540, + "Id": 542, "Region": "System", "Function": "PreventEdgeShortcutCreation", "Arg": { @@ -1501,7 +1523,7 @@ } }, { - "Id": 541, + "Id": 543, "Region": "System", "Function": "SATADrivesRemovableMedia", "Arg": { diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_11.json b/Wrapper/Localizations/en-US/tooltip_Windows_11.json index 935aada4..82d6a9fd 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_11.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_11.json @@ -1350,6 +1350,28 @@ { "Id": 537, "Region": "System", + "Function": "Export-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Export all Windows associations into Application_Associations.json file to script root folder." + } + } + }, + { + "Id": 538, + "Region": "System", + "Function": "Import-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Import all Windows associations from an Application_Associations.json file. You need to install all apps according to an exported Application_Associations.json file to restore all associations." + } + } + }, + { + "Id": 539, + "Region": "System", "Function": "DefaultTerminalApp", "Arg": { "Zero": { @@ -1363,7 +1385,7 @@ } }, { - "Id": 538, + "Id": 540, "Region": "System", "Function": "InstallVCRedist", "Arg": { @@ -1374,7 +1396,7 @@ } }, { - "Id": 539, + "Id": 541, "Region": "System", "Function": "InstallDotNetRuntimes", "Arg": { @@ -1385,7 +1407,7 @@ } }, { - "Id": 540, + "Id": 542, "Region": "System", "Function": "RKNBypass", "Arg": { @@ -1400,7 +1422,7 @@ } }, { - "Id": 541, + "Id": 543, "Region": "System", "Function": "Install-WSA", "Arg": { @@ -1411,7 +1433,7 @@ } }, { - "Id": 542, + "Id": 544, "Region": "System", "Function": "PreventEdgeShortcutCreation", "Arg": { @@ -1426,7 +1448,7 @@ } }, { - "Id": 543, + "Id": 545, "Region": "System", "Function": "SATADrivesRemovableMedia", "Arg": { diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json index 64484bd4..cbb28d4b 100644 --- a/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json +++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json @@ -1455,6 +1455,28 @@ { "Id": 536, "Region": "System", + "Function": "Export-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Экспортировать все ассоциации в Windows в корень папки в виде файла Application_Associations.json." + } + } + }, + { + "Id": 537, + "Region": "System", + "Function": "Import-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Импортировать все ассоциации в Windows из файла Application_Associations.json. Вам необходимо установить все приложения согласно экспортированному файлу Application_Associations.json, чтобы восстановить все ассоциации." + } + } + }, + { + "Id": 538, + "Region": "System", "Function": "UninstallPCHealthCheck", "Arg": { "Zero": { @@ -1464,7 +1486,7 @@ } }, { - "Id": 537, + "Id": 539, "Region": "System", "Function": "InstallVCRedist", "Arg": { @@ -1475,7 +1497,7 @@ } }, { - "Id": 538, + "Id": 540, "Region": "System", "Function": "InstallDotNetRuntimes", "Arg": { @@ -1486,7 +1508,7 @@ } }, { - "Id": 539, + "Id": 541, "Region": "System", "Function": "RKNBypass", "Arg": { @@ -1501,7 +1523,7 @@ } }, { - "Id": 540, + "Id": 542, "Region": "System", "Function": "PreventEdgeShortcutCreation", "Arg": { @@ -1516,7 +1538,7 @@ } }, { - "Id": 541, + "Id": 543, "Region": "System", "Function": "SATADrivesRemovableMedia", "Arg": { diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json index d7d6d2a5..8f294b68 100644 --- a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json +++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json @@ -1288,7 +1288,7 @@ } }, { - "Id": 326, + "Id": 533, "Region": "System", "Function": "RestartNotification", "Arg": { @@ -1318,7 +1318,7 @@ } }, { - "Id": 533, + "Id": 535, "Region": "System", "Function": "ActiveHours", "Arg": { @@ -1348,7 +1348,29 @@ } }, { - "Id": 535, + "Id": 537, + "Region": "System", + "Function": "Export-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Экспортировать все ассоциации в Windows в корень папки в виде файла Application_Associations.json." + } + } + }, + { + "Id": 538, + "Region": "System", + "Function": "Import-Associations", + "Arg": { + "Zero": { + "Tag": "", + "ToolTip": "Импортировать все ассоциации в Windows из файла Application_Associations.json. Вам необходимо установить все приложения согласно экспортированному файлу Application_Associations.json, чтобы восстановить все ассоциации." + } + } + }, + { + "Id": 539, "Region": "System", "Function": "DefaultTerminalApp", "Arg": { @@ -1363,7 +1385,7 @@ } }, { - "Id": 536, + "Id": 540, "Region": "System", "Function": "InstallVCRedist", "Arg": { @@ -1374,7 +1396,7 @@ } }, { - "Id": 537, + "Id": 541, "Region": "System", "Function": "InstallDotNetRuntimes", "Arg": { @@ -1385,7 +1407,7 @@ } }, { - "Id": 538, + "Id": 542, "Region": "System", "Function": "RKNBypass", "Arg": { @@ -1400,7 +1422,7 @@ } }, { - "Id": 539, + "Id": 543, "Region": "System", "Function": "Install-WSA", "Arg": { @@ -1411,7 +1433,7 @@ } }, { - "Id": 540, + "Id": 544, "Region": "System", "Function": "PreventEdgeShortcutCreation", "Arg": { @@ -1426,7 +1448,7 @@ } }, { - "Id": 541, + "Id": 545, "Region": "System", "Function": "SATADrivesRemovableMedia", "Arg": { diff --git a/src/Sophia_Script_for_Windows_10/Sophia.ps1 b/src/Sophia_Script_for_Windows_10/Sophia.ps1 index 3a731200..65917a3e 100644 --- a/src/Sophia_Script_for_Windows_10/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10/Sophia.ps1 @@ -958,13 +958,17 @@ ActiveHours -Automatically #> # Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0" -<# - Export all Windows associations. Associations will be exported as Application_Associations.json file in script root folder - Import exported JSON file after a clean installation. You have to install all apps according to an exported JSON file to restore all associations -#> +# Экспортировать все ассоциации в Windows в корень папки в виде файла Application_Associations.json +# Export all Windows associations into Application_Associations.json file to script root folder # Export-Associations -# Import all Windows associations from a JSON file. You have to install all apps according to an exported JSON file to restore all associations +<# + Импортировать все ассоциации в Windows из файла Application_Associations.json + Вам необходимо установить все приложения согласно экспортированному файлу Application_Associations.json, чтобы восстановить все ассоциации + + Import all Windows associations from an Application_Associations.json file + You need to install all apps according to an exported Application_Associations.json file to restore all associations +#> # Import-Associations <# diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 index 598217e2..e5971277 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 @@ -767,13 +767,17 @@ ActiveHours -Automatically #> # Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0" -<# - Export all Windows associations. Associations will be exported as Application_Associations.json file in script root folder - Import exported JSON file after a clean installation. You have to install all apps according to an exported JSON file to restore all associations -#> +# Экспортировать все ассоциации в Windows в корень папки в виде файла Application_Associations.json +# Export all Windows associations into Application_Associations.json file to script root folder # Export-Associations -# Import all Windows associations from a JSON file. You have to install all apps according to an exported JSON file to restore all associations +<# + Импортировать все ассоциации в Windows из файла Application_Associations.json + Вам необходимо установить все приложения согласно экспортированному файлу Application_Associations.json, чтобы восстановить все ассоциации + + Import all Windows associations from an Application_Associations.json file + You need to install all apps according to an exported Application_Associations.json file to restore all associations +#> # Import-Associations <# diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 index 5e701101..fc44b244 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 @@ -864,13 +864,17 @@ ActiveHours -Automatically #> # Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0" -<# - Export all Windows associations. Associations will be exported as Application_Associations.json file in script root folder - Import exported JSON file after a clean installation. You have to install all apps according to an exported JSON file to restore all associations -#> +# Экспортировать все ассоциации в Windows в корень папки в виде файла Application_Associations.json +# Export all Windows associations into Application_Associations.json file to script root folder # Export-Associations -# Import all Windows associations from a JSON file. You have to install all apps according to an exported JSON file to restore all associations +<# + Импортировать все ассоциации в Windows из файла Application_Associations.json + Вам необходимо установить все приложения согласно экспортированному файлу Application_Associations.json, чтобы восстановить все ассоциации + + Import all Windows associations from an Application_Associations.json file + You need to install all apps according to an exported Application_Associations.json file to restore all associations +#> # Import-Associations <# diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 index d862f055..a0015552 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 @@ -967,13 +967,17 @@ ActiveHours -Automatically #> # Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0" -<# - Export all Windows associations. Associations will be exported as Application_Associations.json file in script root folder - Import exported JSON file after a clean installation. You have to install all apps according to an exported JSON file to restore all associations -#> +# Экспортировать все ассоциации в Windows в корень папки в виде файла Application_Associations.json +# Export all Windows associations into Application_Associations.json file to script root folder # Export-Associations -# Import all Windows associations from a JSON file. You have to install all apps according to an exported JSON file to restore all associations +<# + Импортировать все ассоциации в Windows из файла Application_Associations.json + Вам необходимо установить все приложения согласно экспортированному файлу Application_Associations.json, чтобы восстановить все ассоциации + + Import all Windows associations from an Application_Associations.json file + You need to install all apps according to an exported Application_Associations.json file to restore all associations +#> # Import-Associations <# diff --git a/src/Sophia_Script_for_Windows_11/Sophia.ps1 b/src/Sophia_Script_for_Windows_11/Sophia.ps1 index 6396fb65..c6116750 100644 --- a/src/Sophia_Script_for_Windows_11/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11/Sophia.ps1 @@ -913,13 +913,17 @@ WindowsLatestUpdate -Disable #> # Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0" -<# - Export all Windows associations. Associations will be exported as Application_Associations.json file in script root folder - Import exported JSON file after a clean installation. You have to install all apps according to an exported JSON file to restore all associations -#> +# Экспортировать все ассоциации в Windows в корень папки в виде файла Application_Associations.json +# Export all Windows associations into Application_Associations.json file to script root folder # Export-Associations -# Import all Windows associations from a JSON file. You have to install all apps according to an exported JSON file to restore all associations +<# + Импортировать все ассоциации в Windows из файла Application_Associations.json + Вам необходимо установить все приложения согласно экспортированному файлу Application_Associations.json, чтобы восстановить все ассоциации + + Import all Windows associations from an Application_Associations.json file + You need to install all apps according to an exported Application_Associations.json file to restore all associations +#> # Import-Associations # Set Windows Terminal as default terminal app to host the user interface for command-line applications diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 index b96e50df..00553ba9 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 @@ -914,13 +914,17 @@ NetworkDiscovery -Enable #> # Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0" -<# - Export all Windows associations. Associations will be exported as Application_Associations.json file in script root folder - Import exported JSON file after a clean installation. You have to install all apps according to an exported JSON file to restore all associations -#> +# Экспортировать все ассоциации в Windows в корень папки в виде файла Application_Associations.json +# Export all Windows associations into Application_Associations.json file to script root folder # Export-Associations -# Import all Windows associations from a JSON file. You have to install all apps according to an exported JSON file to restore all associations +<# + Импортировать все ассоциации в Windows из файла Application_Associations.json + Вам необходимо установить все приложения согласно экспортированному файлу Application_Associations.json, чтобы восстановить все ассоциации + + Import all Windows associations from an Application_Associations.json file + You need to install all apps according to an exported Application_Associations.json file to restore all associations +#> # Import-Associations # Set Windows Terminal as default terminal app to host the user interface for command-line applications