|
@ -64,8 +64,10 @@ function Checks |
|
|
{ |
|
|
{ |
|
|
# Check whether the OS minor build version is 1335 minimum |
|
|
# Check whether the OS minor build version is 1335 minimum |
|
|
# https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information |
|
|
# https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information |
|
|
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR |
|
|
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild |
|
|
Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) |
|
|
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR |
|
|
|
|
|
|
|
|
|
|
|
Write-Warning -Message ($Localization.UpdateWarning -f $CurrentBuild.CurrentBuild, $UBR.UBR) |
|
|
|
|
|
|
|
|
Start-Process -FilePath "https://t.me/sophia_chat" |
|
|
Start-Process -FilePath "https://t.me/sophia_chat" |
|
|
|
|
|
|
|
@ -97,8 +99,10 @@ function Checks |
|
|
{ |
|
|
{ |
|
|
# Check whether the OS minor build version is 1335 minimum |
|
|
# Check whether the OS minor build version is 1335 minimum |
|
|
# https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information |
|
|
# https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information |
|
|
$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR |
|
|
$CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild |
|
|
Write-Warning -Message ($Localization.UpdateWarning -f $Version.CurrentBuild, $Version) |
|
|
$UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR |
|
|
|
|
|
|
|
|
|
|
|
Write-Warning -Message ($Localization.UpdateWarning -f $CurrentBuild.CurrentBuild, $UBR.UBR) |
|
|
|
|
|
|
|
|
Start-Process -FilePath "https://t.me/sophia_chat" |
|
|
Start-Process -FilePath "https://t.me/sophia_chat" |
|
|
|
|
|
|
|
|