Skip to content

Commit

Permalink
Add Internet Connection Checking
Browse files Browse the repository at this point in the history
Thank Edward Wu for the suggestion
  • Loading branch information
justinlin099 committed Dec 5, 2021
1 parent c9b177c commit 3ec3288
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 @@ -9,6 +9,13 @@ if ($WinVersion -lt 1903){
break
}

Write-Host Checking Your Internet Connection...
if (((Test-NetConnection www.google.com -Port 80 -InformationLevel "Detailed").TcpTestSucceeded) -eq $false)
{
[System.Windows.Forms.MessageBox]::Show("This Installer Script Requires Internet Connection, Please check your Internet status and try again." , "Please check your Internet conncetion")
break
}

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

Expand Down

0 comments on commit 3ec3288

Please sign in to comment.