Browse Source

Update Sophia.psm1

Updated Sophia.psm1
pull/469/head
Dmitry Nefedov 2 years ago
parent
commit
320736ad6a
  1. 5
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  2. 1
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  3. 4
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

5
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -102,6 +102,7 @@ function Checks
Write-Warning -Message $Localization.UnsupportedOSBuild Write-Warning -Message $Localization.UnsupportedOSBuild
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79" Start-Process -FilePath "https://discord.gg/sSryhaEv79"
Start-Process -FilePath "https://github.com/farag2/Sophia-Script-for-Windows#system-requirements"
exit exit
} }
} }
@ -250,16 +251,12 @@ function Checks
{ {
Write-Warning -Message ($Localization.NoResponse -f "https://github.com") Write-Warning -Message ($Localization.NoResponse -f "https://github.com")
Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
} }
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {
Write-Warning -Message $Localization.NoInternetConnection Write-Warning -Message $Localization.NoInternetConnection
Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
} }
#region Defender checks #region Defender checks

1
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -61,6 +61,7 @@ function Checks
{ {
Write-Warning -Message $Localization.UnsupportedOSBitness Write-Warning -Message $Localization.UnsupportedOSBitness
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"
Start-Process -FilePath "https://discord.gg/sSryhaEv79"
exit exit
} }

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -226,8 +226,8 @@ function Checks
exit exit
} }
# Check whether the script was run via PowerShell 5.1 # Check whether the script was run via PowerShell 7
if ($PSVersionTable.PSVersion.Major -ne 5) if ($PSVersionTable.PSVersion.Major -ne 7)
{ {
Write-Warning -Message ($Localization.UnsupportedPowerShell -f $PSVersionTable.PSVersion.Major, $PSVersionTable.PSVersion.Minor) Write-Warning -Message ($Localization.UnsupportedPowerShell -f $PSVersionTable.PSVersion.Major, $PSVersionTable.PSVersion.Minor)
Start-Process -FilePath "https://t.me/sophia_chat" Start-Process -FilePath "https://t.me/sophia_chat"

Loading…
Cancel
Save