Browse Source

Updated ReleaseNotesTemplate and wrong comparation for AMD64 based CPUs

Fix for #654
pull/658/head
Dmitry Nefedov 8 months ago
parent
commit
761919c19f
  1. 76
      ReleaseNotesTemplate.md
  2. 4
      Scripts/ReleaseNotesTemplate.ps1
  3. 6
      chocolatey/tools/chocolateyinstall.ps1
  4. 2
      sophia_script_versions.json
  5. 6
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  6. 6
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  7. 6
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  8. 6
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  9. 6
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  10. 8
      src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1
  11. 8
      src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1
  12. 6
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1
  13. 6
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

76
ReleaseNotesTemplate.md

@ -17,51 +17,43 @@ Diff from vOldVersion
[OldVersion...NewVersion](https://github.com/farag2/Sophia-Script-for-Windows/compare/OldVersion...NewVersion) [OldVersion...NewVersion](https://github.com/farag2/Sophia-Script-for-Windows/compare/OldVersion...NewVersion)
*** ***
Manual avaliable in other languages Manual avaliable in other languages
<a href="./README.md#how-to-use"><img src="https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/refs/heads/master/img/united-states.png" height="70px"/></a> <a href="./docs/README_uk-ua.md#як-використовувати"><img src="https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/refs/heads/master/img/ukraine.png" height="70px"/></a> <a href="./docs/README_de-de.md#wie-zu-verwenden"><img src="https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/refs/heads/master/img/germany.png" height="70px"/></a> <a href="./docs/README_ru-ru.md#как-использовать"><img src="https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/refs/heads/master/img/russia.png" height="70px"/></a> <a href="./README.md#how-to-use"><img src="https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/refs/heads/master/img/united-states.png" height="70px"/></a> <a href="./docs/README_uk-ua.md#як-використовувати"><img src="https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/refs/heads/master/img/ukraine.png" height="70px"/></a> <a href="./docs/README_de-de.md#wie-zu-verwenden"><img src="https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/refs/heads/master/img/germany.png" height="70px"/></a> <a href="./docs/README_ru-ru.md#как-использовать"><img src="https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/refs/heads/master/img/russia.png" height="70px"/></a>
[Sophia-Script-Windows-10-PowerShell-5-1]: https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.10.vSophia_Script_Windows_10_PowerShell_5_1.zip ### Download
[Sophia-Script-Windows-10-PowerShell-5-1-badge]: https://img.shields.io/badge/Windows%2010%20x64-PowerShell%205.1-67b7d1.svg
<table>
[Sophia-Script-Windows-10-PowerShell-7]: https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.10.PowerShell.7.vSophia_Script_Windows_10_PowerShell_7.zip <tbody>
[Sophia-Script-Windows-10-PowerShell-7-badge]: https://img.shields.io/badge/Windows%2010%20x64-PowerShell%207-67b7d1.svg <tr>
<td align="center">Windows 10</td>
[Sophia-Script-Windows-10-LTSC2019]: https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.10.LTSC.2019.vSophia_Script_Windows_10_LTSC2019.zip <td align="center">Windows 11</td>
[Sophia-Script-Windows-10-LTSC2019-badge]: https://img.shields.io/badge/Windows%2010%20x64-LTSC%202019-67b7d1.svg </tr>
<tr>
[Sophia-Script-Windows-10-LTSC2021]: https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.10.LTSC.2021.vSophia_Script_Windows_10_LTSC2021.zip <td align="left"><a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.10.vSophia_Script_Windows_10_PowerShell_5_1.zip"><img src="https://img.shields.io/badge/Windows%2010%20x64-PowerShell%205.1-67b7d1.svg"></a></td>
[Sophia-Script-Windows-10-LTSC2021-badge]: https://img.shields.io/badge/Windows%2010%20x64-LTSC%202021-67b7d1.svg <td align="left"><a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.11.vSophia_Script_Windows_11_PowerShell_5_1.zip"><img src="https://img.shields.io/badge/Windows%2011-PowerShell%205.1-67b7d1.svg"></a></td>
</tr>
[Sophia-Script-Windows-11-PowerShell-5-1]: https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.11.vSophia_Script_Windows_11_PowerShell_5_1.zip <tr>
[Sophia-Script-Windows-11-PowerShell-5-1-badge]: https://img.shields.io/badge/Windows%2011-PowerShell%205.1-67b7d1.svg <td align="left"><a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.10.PowerShell.7.vSophia_Script_Windows_10_PowerShell_7.zip"><img src="https://img.shields.io/badge/Windows%2010%20x64-PowerShell%207-67b7d1.svg"></a></td>
<td align="left"><a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.11.PowerShell.7.vSophia_Script_Windows_11_PowerShell_7.zip"><img src="https://img.shields.io/badge/Windows%2011-PowerShell%207-67b7d1.svg"></a></td>
[Sophia-Script-Windows-11-Arm-PowerShell-5-1]: https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.11.Arm.vSophia_Script_Windows_11_Arm_PowerShell_5_1.zip </tr>
[Sophia-Script-Windows-11-Arm-PowerShell-5-1-badge]: https://img.shields.io/badge/Windows%2011%20Arm-PowerShell%205.1-67b7d1.svg <tr>
<td align="left"><a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.10.LTSC.2019.vSophia_Script_Windows_10_LTSC2019.zip"><img src="https://img.shields.io/badge/Windows%2010%20x64-LTSC%202019-67b7d1.svg"></a></td>
[Sophia-Script-Windows-11-Arm-PowerShell-7]: https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.11.Arm.PowerShell.7.vSophia_Script_Windows_11_Arm_PowerShell_7.zip <td align="left"><a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.11.LTSC.2024.vSophia_Script_Windows_11_PowerShell_5_1.zip"><img src="https://img.shields.io/badge/Windows%2011%20LTSC%202024-PowerShell%205.1-67b7d1.svg"></a></td>
[Sophia-Script-Windows-11-Arm-PowerShell-7-badge]: https://img.shields.io/badge/Windows%2011%20Arm-PowerShell%207-67b7d1.svg </tr>
<tr>
[Sophia-Script-Windows-11-PowerShell-7]: https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.11.PowerShell.7.vSophia_Script_Windows_11_PowerShell_7.zip <td align="left"><a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.10.LTSC.2021.vSophia_Script_Windows_10_LTSC2021.zip"><img src="https://img.shields.io/badge/Windows%2010%20x64-LTSC%202021-67b7d1.svg"></a></td>
[Sophia-Script-Windows-11-PowerShell-7-badge]: https://img.shields.io/badge/Windows%2011-PowerShell%207-67b7d1.svg <td align="left"><a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.11.Arm.vSophia_Script_Windows_11_Arm_PowerShell_5_1.zip"><img src="https://img.shields.io/badge/Windows%2011%20Arm-PowerShell%205.1-67b7d1.svg"></a></td>
</tr>
[Sophia-Script-Windows-11-LTSC2024]: https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.11.LTSC.2024.vSophia_Script_Windows_11_PowerShell_5_1.zip <tr>
[Sophia-Script-Windows-11-LTSC2024-badge]: https://img.shields.io/badge/Windows%2011%20LTSC%202024-PowerShell%205.1-67b7d1.svg <td align="left"></td>
<td align="left"><a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.for.Windows.11.Arm.PowerShell.7.vSophia_Script_Windows_11_Arm_PowerShell_7.zip"><img src="https://img.shields.io/badge/Windows%2011%20Arm-PowerShell%207-67b7d1.svg"></a></td>
[Sophia-Script-Wrapper]: https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.Wrapper.vSophia_Script_Wrapper.zip </tr>
[Sophia-Script-Wrapper-badge]: https://img.shields.io/badge/Sophia%20Script%20Wrapper-67b7d1.svg <tr>
<td align="center" colspan="2"><a href="https://github.com/farag2/Sophia-Script-for-Windows/releases/download/NewVersion/Sophia.Script.Wrapper.vSophia_Script_Wrapper.zip"><img src="https://img.shields.io/badge/Sophia%20Script%20Wrapper-67b7d1.svg"></a></td>
| Download | </tr>
|:------------------------------------------------------------------------------------------------------------| </tbody>
| [![Script][Sophia-Script-Windows-10-PowerShell-5-1-badge]][Sophia-Script-Windows-10-PowerShell-5-1] | </table>
| [![Script][Sophia-Script-Windows-10-PowerShell-7-badge]][Sophia-Script-Windows-10-PowerShell-7] |
| [![Script][Sophia-Script-Windows-10-LTSC2019-badge]][Sophia-Script-Windows-10-LTSC2019] |
| [![Script][Sophia-Script-Windows-10-LTSC2021-badge]][Sophia-Script-Windows-10-LTSC2021] |
| [![Script][Sophia-Script-Windows-11-PowerShell-5-1-badge]][Sophia-Script-Windows-11-PowerShell-5-1] |
| [![Script][Sophia-Script-Windows-11-Arm-PowerShell-5-1-badge]][Sophia-Script-Windows-11-Arm-PowerShell-5-1] |
| [![Script][Sophia-Script-Windows-11-Arm-PowerShell-7-badge]][Sophia-Script-Windows-11-Arm-PowerShell-7] |
| [![Script][Sophia-Script-Windows-11-PowerShell-7-badge]][Sophia-Script-Windows-11-PowerShell-7] |
| [![Script][Sophia-Script-Windows-11-LTSC2024-badge]][Sophia-Script-Windows-11-LTSC2024] |
| [![Script][Sophia-Script-Wrapper-badge]][Sophia-Script-Wrapper] |

4
Scripts/ReleaseNotesTemplate.ps1

@ -31,8 +31,8 @@ $JSON = Invoke-RestMethod @Parameters
-replace "Sophia_Script_Windows_10_LTSC2021", $JSON.Sophia_Script_Windows_10_LTSC2021 ` -replace "Sophia_Script_Windows_10_LTSC2021", $JSON.Sophia_Script_Windows_10_LTSC2021 `
-replace "Sophia_Script_Windows_11_PowerShell_5_1", $JSON.Sophia_Script_Windows_11_PowerShell_5_1 ` -replace "Sophia_Script_Windows_11_PowerShell_5_1", $JSON.Sophia_Script_Windows_11_PowerShell_5_1 `
-replace "Sophia_Script_Windows_11_PowerShell_7", $JSON.Sophia_Script_Windows_11_PowerShell_7 ` -replace "Sophia_Script_Windows_11_PowerShell_7", $JSON.Sophia_Script_Windows_11_PowerShell_7 `
-replace "Sophia_Script_Windows_11_Arm_PowerShell_5_1", $JSON.Sophia_Script_Windows_11_PowerShell_5_1 ` -replace "Sophia_Script_Windows_11_Arm_PowerShell_5_1", $JSON.Sophia_Script_Windows_11_Arm_PowerShell_5_1 `
-replace "Sophia_Script_Windows_11_Arm_PowerShell_7", $JSON.Sophia_Script_Windows_11_PowerShell_7 ` -replace "Sophia_Script_Windows_11_Arm_PowerShell_7", $JSON.Sophia_Script_Windows_11_Arm_PowerShell_7 `
-replace "Sophia_Script_Windows_11_LTSC2024", $JSON.Sophia_Script_Windows_11_LTSC2024 ` -replace "Sophia_Script_Windows_11_LTSC2024", $JSON.Sophia_Script_Windows_11_LTSC2024 `
-replace "Sophia_Script_Wrapper", $JSON.Sophia_Script_Wrapper -replace "Sophia_Script_Wrapper", $JSON.Sophia_Script_Wrapper
} | Set-Content -Path ReleaseNotesTemplate.md -Encoding utf8 -Force } | Set-Content -Path ReleaseNotesTemplate.md -Encoding utf8 -Force

6
chocolatey/tools/chocolateyinstall.ps1

@ -117,7 +117,7 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
{ {
if ((Get-CimInstance -ClassName CIM_Processor).Caption -match "ARM") if ((Get-CimInstance -ClassName CIM_Processor).Caption -match "ARM")
{ {
$LatestRelease = $JSONVersions.Sophia_Script_Windows_11_PowerShell_7 $LatestRelease = $JSONVersions.Sophia_Script_Windows_11_Arm__PowerShell_7
$URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.11.Arm.PowerShell.7.v$LatestRelease.zip" $URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.11.Arm.PowerShell.7.v$LatestRelease.zip"
$Hash = "Hash_Sophia_Script_Windows_11_Arm_PowerShell_7" $Hash = "Hash_Sophia_Script_Windows_11_Arm_PowerShell_7"
} }
@ -133,9 +133,9 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
{ {
if ((Get-CimInstance -ClassName CIM_Processor).Caption -match "ARM") if ((Get-CimInstance -ClassName CIM_Processor).Caption -match "ARM")
{ {
$LatestRelease = $JSONVersions.Sophia_Script_Windows_11_PowerShell_5_1 $LatestRelease = $JSONVersions.Sophia_Script_Windows_11_Arm_PowerShell_5_1
$URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.11.Arm.v$LatestRelease.zip" $URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.11.Arm.v$LatestRelease.zip"
$Hash = "Hash_Sophia_Script_Windows_11_Arm_PowerShell_5_1" $Hash = "Hash_Sophia_Script_Windows_11_Arm"
} }
else else
{ {

2
sophia_script_versions.json

@ -6,5 +6,7 @@
"Sophia_Script_Windows_11_PowerShell_5_1": "6.9.0", "Sophia_Script_Windows_11_PowerShell_5_1": "6.9.0",
"Sophia_Script_Windows_11_LTSC2024": "6.9.0", "Sophia_Script_Windows_11_LTSC2024": "6.9.0",
"Sophia_Script_Windows_11_PowerShell_7": "6.9.0", "Sophia_Script_Windows_11_PowerShell_7": "6.9.0",
"Sophia_Script_Windows_11_Arm_PowerShell_5_1": "6.9.0",
"Sophia_Script_Windows_11_Arm_PowerShell_7": "6.9.0",
"Sophia_Script_Wrapper": "2.8.4" "Sophia_Script_Wrapper": "2.8.4"
} }

6
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -164,13 +164,13 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
} }
# Check CPU architecture # Check CPU architecture
if ((Get-CimInstance -ClassName CIM_Processor).Caption -notmatch "AMD64") $Caption = (Get-CimInstance -ClassName CIM_Processor).Caption
if (($Caption -notmatch "AMD64") -and ($Caption -notmatch "Intel64"))
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.UnsupportedArchitecture -f (Get-CimInstance -ClassName CIM_Processor).Caption) Write-Warning -Message ($Localization.UnsupportedArchitecture -f $Caption)
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

6
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -164,13 +164,13 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
} }
# Check CPU architecture # Check CPU architecture
if ((Get-CimInstance -ClassName CIM_Processor).Caption -notmatch "AMD64") $Caption = (Get-CimInstance -ClassName CIM_Processor).Caption
if (($Caption -notmatch "AMD64") -and ($Caption -notmatch "Intel64"))
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.UnsupportedArchitecture -f (Get-CimInstance -ClassName CIM_Processor).Caption) Write-Warning -Message ($Localization.UnsupportedArchitecture -f $Caption)
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

6
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -164,13 +164,13 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
} }
# Check CPU architecture # Check CPU architecture
if ((Get-CimInstance -ClassName CIM_Processor).Caption -notmatch "AMD64") $Caption = (Get-CimInstance -ClassName CIM_Processor).Caption
if (($Caption -notmatch "AMD64") -and ($Caption -notmatch "Intel64"))
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.UnsupportedArchitecture -f (Get-CimInstance -ClassName CIM_Processor).Caption) Write-Warning -Message ($Localization.UnsupportedArchitecture -f $Caption)
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

6
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -177,13 +177,13 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
} }
# Check CPU architecture # Check CPU architecture
if ((Get-CimInstance -ClassName CIM_Processor).Caption -notmatch "AMD64") $Caption = (Get-CimInstance -ClassName CIM_Processor).Caption
if (($Caption -notmatch "AMD64") -and ($Caption -notmatch "Intel64"))
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.UnsupportedArchitecture -f (Get-CimInstance -ClassName CIM_Processor).Caption) Write-Warning -Message ($Localization.UnsupportedArchitecture -f $Caption)
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

6
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -257,13 +257,13 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
} }
# Check CPU architecture # Check CPU architecture
if ((Get-CimInstance -ClassName CIM_Processor).Caption -notmatch "AMD64") $Caption = (Get-CimInstance -ClassName CIM_Processor).Caption
if (($Caption -notmatch "AMD64") -and ($Caption -notmatch "Intel64"))
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.UnsupportedArchitecture -f (Get-CimInstance -ClassName CIM_Processor).Caption) Write-Warning -Message ($Localization.UnsupportedArchitecture -f $Caption)
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

8
src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1

@ -260,13 +260,13 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
} }
# Check CPU architecture # Check CPU architecture
if ((Get-CimInstance -ClassName CIM_Processor).Caption -notmatch "ARM") $Caption = (Get-CimInstance -ClassName CIM_Processor).Caption
if (($Caption -notmatch "AMD64") -and ($Caption -notmatch "Intel64"))
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.UnsupportedArchitecture -f (Get-CimInstance -ClassName CIM_Processor).Caption) Write-Warning -Message ($Localization.UnsupportedArchitecture -f $Caption)
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
@ -866,7 +866,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Verbose = $true Verbose = $true
UseBasicParsing = $true UseBasicParsing = $true
} }
$LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_11_PowerShell_5_1 $LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_11_Arm_PowerShell_5_1
$CurrentRelease = (Get-Module -Name SophiaScript).Version.ToString() $CurrentRelease = (Get-Module -Name SophiaScript).Version.ToString()
if ([System.Version]$LatestRelease -gt [System.Version]$CurrentRelease) if ([System.Version]$LatestRelease -gt [System.Version]$CurrentRelease)

8
src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1

@ -273,13 +273,13 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
} }
# Check CPU architecture # Check CPU architecture
if ((Get-CimInstance -ClassName CIM_Processor).Caption -notmatch "ARM") $Caption = (Get-CimInstance -ClassName CIM_Processor).Caption
if (($Caption -notmatch "AMD64") -and ($Caption -notmatch "Intel64"))
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.UnsupportedArchitecture -f (Get-CimInstance -ClassName CIM_Processor).Caption) Write-Warning -Message ($Localization.UnsupportedArchitecture -f $Caption)
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose
@ -893,7 +893,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Verbose = $true Verbose = $true
UseBasicParsing = $true UseBasicParsing = $true
} }
$LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_11_PowerShell_5_1 $LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_11_Arm_PowerShell_7
$CurrentRelease = (Get-Module -Name SophiaScript).Version.ToString() $CurrentRelease = (Get-Module -Name SophiaScript).Version.ToString()
if ([System.Version]$LatestRelease -gt [System.Version]$CurrentRelease) if ([System.Version]$LatestRelease -gt [System.Version]$CurrentRelease)

6
src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1

@ -257,13 +257,13 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
} }
# Check CPU architecture # Check CPU architecture
if ((Get-CimInstance -ClassName CIM_Processor).Caption -notmatch "AMD64") $Caption = (Get-CimInstance -ClassName CIM_Processor).Caption
if (($Caption -notmatch "AMD64") -and ($Caption -notmatch "Intel64"))
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.UnsupportedArchitecture -f (Get-CimInstance -ClassName CIM_Processor).Caption) Write-Warning -Message ($Localization.UnsupportedArchitecture -f $Caption)
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

6
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -270,13 +270,13 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
} }
# Check CPU architecture # Check CPU architecture
if ((Get-CimInstance -ClassName CIM_Processor).Caption -notmatch "AMD64") $Caption = (Get-CimInstance -ClassName CIM_Processor).Caption
if (($Caption -notmatch "AMD64") -and ($Caption -notmatch "Intel64"))
{ {
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message ($Localization.UnsupportedArchitecture -f (Get-CimInstance -ClassName CIM_Processor).Caption) Write-Warning -Message ($Localization.UnsupportedArchitecture -f $Caption)
Write-Information -MessageData "" -InformationAction Continue Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes" -Verbose
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose Write-Verbose -Message "https://t.me/sophia_chat" -Verbose
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose

Loading…
Cancel
Save