Skip to content

Commit

Permalink
Update Windows Terminal Installer GUI.ps1
Browse files Browse the repository at this point in the history
Add WinVer Detection
  • Loading branch information
justinlin099 committed Dec 4, 2021
1 parent e804a03 commit 951189f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Windows Terminal Installer GUI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

Write-Host Windows Terminal Installer GUI by Justin Lin

Write-Host Checking Windows Version...
$WinVersion = (Get-ComputerInfo).WindowsVersion
if ($WinVersion -lt 1903){
[System.Windows.Forms.MessageBox]::Show("You are running Windows Version "+$WinVersion+" ,The minimal requirement is version 1903. Please update your Windows and try again." , "Please update your Windows")
break
}

#Create Temp Folder
New-Item -Name "WTInstaller" -ItemType "directory"

Expand Down

0 comments on commit 951189f

Please sign in to comment.