Skip to content

Commit 316dda9

Browse files
committed
Update chocolateyinstall.ps1
1 parent b91f87b commit 316dda9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

chocolatey/tools/chocolateyinstall.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
3535
# Check for Windows 10 LTSC 2019
3636
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName) -match "LTSC 2019")
3737
{
38+
Write-Verbose -Message "LTSC 2019" -Verbose
3839
$LatestRelease = $JSONVersions.Sophia_Script_Windows_10_LTSC2019
3940
$URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.10.LTSC.2019.v$LatestRelease.zip"
4041
$Hash = "Hash_Sophia_Script_Windows_10_LTSC2019"
@@ -45,6 +46,7 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
4546
# Check for Windows 10 LTSC 2021
4647
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName) -match "LTSC 2021")
4748
{
49+
Write-Verbose -Message "LTSC 2021" -Verbose
4850
$LatestRelease = $JSONVersions.Sophia_Script_Windows_10_LTSC2021
4951
$URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.10.LTSC.2021.v$LatestRelease.zip"
5052
$Hash = "Hash_Sophia_Script_Windows_10_LTSC2021"
@@ -56,13 +58,15 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
5658
{
5759
if ($packageParameters.Contains('PS7'))
5860
{
61+
Write-Verbose -Message "19045 PS7" -Verbose
5962
$LatestRelease = $JSONVersions.Sophia_Script_Windows_10_PowerShell_7
6063
$URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.10.PowerShell.7.v$LatestRelease.zip"
6164
$Hash = "Hash_Sophia_Script_Windows_10_PowerShell_7"
6265
}
6366
}
6467
else
6568
{
69+
Write-Verbose -Message "19045" -Verbose
6670
$LatestRelease = $JSONVersions.Sophia_Script_Windows_10_PowerShell_5_1
6771
$URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.10.v$LatestRelease.zip"
6872
$Hash = "Hash_Sophia_Script_Windows_10_PowerShell_5_1"
@@ -73,6 +77,7 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
7377
# Check for Windows 11 LTSC 2024
7478
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName) -match "LTSC 2024")
7579
{
80+
Write-Verbose -Message "LTSC 2024" -Verbose
7681
$LatestRelease = $JSONVersions.Sophia_Script_Windows_11_LTSC2024
7782
$URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.11.LTSC.2024.v$LatestRelease.zip"
7883
$Hash = "Hash_Sophia_Script_Windows_11_LTSC2024"
@@ -85,12 +90,14 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
8590
{
8691
if ((Get-CimInstance -ClassName CIM_Processor).Caption -match "ARM")
8792
{
93+
Write-Verbose -Message "26100 ARM PS7" -Verbose
8894
$LatestRelease = $JSONVersions.Sophia_Script_Windows_11_Arm_PowerShell_7
8995
$URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.11.Arm.PowerShell.7.v$LatestRelease.zip"
9096
$Hash = "Hash_Sophia_Script_Windows_11_Arm_PowerShell_7"
9197
}
9298
else
9399
{
100+
Write-Verbose -Message "26100 PS7" -Verbose
94101
$LatestRelease = $JSONVersions.Sophia_Script_Windows_11_PowerShell_7
95102
$URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.11.PowerShell.7.v$LatestRelease.zip"
96103
$Hash = "Hash_Sophia_Script_Windows_11_PowerShell_7"
@@ -101,12 +108,14 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
101108
{
102109
if ((Get-CimInstance -ClassName CIM_Processor).Caption -match "ARM")
103110
{
111+
Write-Verbose -Message "26100 ARM" -Verbose
104112
$LatestRelease = $JSONVersions.Sophia_Script_Windows_11_Arm_PowerShell_5_1
105113
$URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.11.Arm.v$LatestRelease.zip"
106114
$Hash = "Hash_Sophia_Script_Windows_11_Arm_PowerShell_5_1"
107115
}
108116
else
109117
{
118+
Write-Verbose -Message "26100" -Verbose
110119
$LatestRelease = $JSONVersions.Sophia_Script_Windows_11_PowerShell_5_1
111120
$URL = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.11.v$LatestRelease.zip"
112121
$Hash = "Hash_Sophia_Script_Windows_11_PowerShell_5_1"

0 commit comments

Comments
 (0)