From 9ebcbdbc8a29983ea14467b218dcb6b0e353fc79 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Thu, 2 Feb 2023 01:13:56 +0300 Subject: [PATCH] Improved readability --- src/Sophia_Script_for_Windows_10/Sophia.ps1 | 31 ++++--------------- .../Sophia.ps1 | 31 ++++--------------- .../Sophia.ps1 | 31 ++++--------------- .../Sophia.ps1 | 31 ++++--------------- src/Sophia_Script_for_Windows_11/Sophia.ps1 | 31 ++++--------------- .../Sophia.ps1 | 31 ++++--------------- 6 files changed, 36 insertions(+), 150 deletions(-) diff --git a/src/Sophia_Script_for_Windows_10/Sophia.ps1 b/src/Sophia_Script_for_Windows_10/Sophia.ps1 index 398016ec..98f295da 100644 --- a/src/Sophia_Script_for_Windows_10/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10/Sophia.ps1 @@ -105,13 +105,8 @@ if ($Functions) } #region Protection -<# - The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument - Please, do not comment out this function - - Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" - Пожалуйста, не комментируйте данную функцию -#> +# The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument +# Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Checks -Warning <# @@ -1474,24 +1469,10 @@ UseStoreOpenWith -Hide # UpdateLGPEPolicies #endregion Update Policies -<# - Simulate pressing F5 to refresh the desktop - Refresh desktop icons, environment variables, taskbar - Restart the Start menu - Please, do not comment out this function - - Симулировать нажатие F5 для обновления рабочего стола - Обновить иконки рабочего стола, переменные среды, панель задач - Перезапустить меню "Пуск" - Пожалуйста, не комментируйте данную функцию -#> +# Environment refresh and other neccessary post actions +# Обновление окружения и прочие необходимые действия после выполнения основных функций PostActions -<# - Errors output - Please, do not comment out this function - - Вывод ошибок - Пожалуйста, не комментируйте данную функцию -#> +# Errors output +# Вывод ошибок Errors 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 08289266..b95afabc 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 @@ -105,13 +105,8 @@ if ($Functions) } #region Protection -<# - The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument - Please, do not comment out this function - - Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" - Пожалуйста, не комментируйте данную функцию -#> +# The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument +# Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Checks -Warning <# @@ -1126,24 +1121,10 @@ MultipleInvokeContext -Enable # UpdateLGPEPolicies #endregion Update Policies -<# - Simulate pressing F5 to refresh the desktop - Refresh desktop icons, environment variables, taskbar - Restart the Start menu - Please, do not comment out this function - - Симулировать нажатие F5 для обновления рабочего стола - Обновить иконки рабочего стола, переменные среды, панель задач - Перезапустить меню "Пуск" - Пожалуйста, не комментируйте данную функцию -#> +# Environment refresh and other neccessary post actions +# Обновление окружения и прочие необходимые действия после выполнения основных функций PostActions -<# - Errors output - Please, do not comment out this function - - Вывод ошибок - Пожалуйста, не комментируйте данную функцию -#> +# Errors output +# Вывод ошибок Errors 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 99ae1612..de487475 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 @@ -105,13 +105,8 @@ if ($Functions) } #region Protection -<# - The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument - Please, do not comment out this function - - Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" - Пожалуйста, не комментируйте данную функцию -#> +# The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument +# Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Checks -Warning <# @@ -1273,24 +1268,10 @@ MultipleInvokeContext -Enable # UpdateLGPEPolicies #endregion Update Policies -<# - Simulate pressing F5 to refresh the desktop - Refresh desktop icons, environment variables, taskbar - Restart the Start menu - Please, do not comment out this function - - Симулировать нажатие F5 для обновления рабочего стола - Обновить иконки рабочего стола, переменные среды, панель задач - Перезапустить меню "Пуск" - Пожалуйста, не комментируйте данную функцию -#> +# Environment refresh and other neccessary post actions +# Обновление окружения и прочие необходимые действия после выполнения основных функций PostActions -<# - Errors output - Please, do not comment out this function - - Вывод ошибок - Пожалуйста, не комментируйте данную функцию -#> +# Errors output +# Вывод ошибок Errors 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 ce8d4e26..bac44a93 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 @@ -114,13 +114,8 @@ if ($Functions) } #region Protection -<# - The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument - Please, do not comment out this function - - Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" - Пожалуйста, не комментируйте данную функцию -#> +# The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument +# Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Checks -Warning <# @@ -1483,24 +1478,10 @@ UseStoreOpenWith -Hide # UpdateLGPEPolicies #endregion Update Policies -<# - Simulate pressing F5 to refresh the desktop - Refresh desktop icons, environment variables, taskbar - Restart the Start menu - Please, do not comment out this function - - Симулировать нажатие F5 для обновления рабочего стола - Обновить иконки рабочего стола, переменные среды, панель задач - Перезапустить меню "Пуск" - Пожалуйста, не комментируйте данную функцию -#> +# Environment refresh and other neccessary post actions +# Обновление окружения и прочие необходимые действия после выполнения основных функций PostActions -<# - Errors output - Please, do not comment out this function - - Вывод ошибок - Пожалуйста, не комментируйте данную функцию -#> +# Errors output +# Вывод ошибок Errors diff --git a/src/Sophia_Script_for_Windows_11/Sophia.ps1 b/src/Sophia_Script_for_Windows_11/Sophia.ps1 index f2799078..34c9aeec 100644 --- a/src/Sophia_Script_for_Windows_11/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11/Sophia.ps1 @@ -104,13 +104,8 @@ if ($Functions) } #region Protection -<# - The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument - Please, do not comment out this function - - Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" - Пожалуйста, не комментируйте данную функцию -#> +# The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument +# Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Checks -Warning <# @@ -1390,24 +1385,10 @@ Windows10ContextMenu -Disable # UpdateLGPEPolicies #endregion Update Policies -<# - Simulate pressing F5 to refresh the desktop - Refresh desktop icons, environment variables, taskbar - Restart the Start menu - Please, do not comment out this function - - Симулировать нажатие F5 для обновления рабочего стола - Обновить иконки рабочего стола, переменные среды, панель задач - Перезапустить меню "Пуск" - Пожалуйста, не комментируйте данную функцию -#> +# Environment refresh and other neccessary post actions +# Обновление окружения и прочие необходимые действия после выполнения основных функций PostActions -<# - Errors output - Please, do not comment out this function - - Вывод ошибок - Пожалуйста, не комментируйте данную функцию -#> +# Errors output +# Вывод ошибок Errors 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 49976f06..1cea4cba 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 @@ -113,13 +113,8 @@ if ($Functions) } #region Protection -<# - The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument - Please, do not comment out this function - - Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" - Пожалуйста, не комментируйте данную функцию -#> +# The mandatory checks. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument +# Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Checks -Warning <# @@ -1399,24 +1394,10 @@ Windows10ContextMenu -Disable # UpdateLGPEPolicies #endregion Update Policies -<# - Simulate pressing F5 to refresh the desktop - Refresh desktop icons, environment variables, taskbar - Restart the Start menu - Please, do not comment out this function - - Симулировать нажатие F5 для обновления рабочего стола - Обновить иконки рабочего стола, переменные среды, панель задач - Перезапустить меню "Пуск" - Пожалуйста, не комментируйте данную функцию -#> +# Environment refresh and other neccessary post actions +# Обновление окружения и прочие необходимые действия после выполнения основных функций PostActions -<# - Errors output - Please, do not comment out this function - - Вывод ошибок - Пожалуйста, не комментируйте данную функцию -#> +# Errors output +# Вывод ошибок Errors