Skip to content

Commit e52c24c

Browse files
committed
Add .NET 4.5 check to scoop install script (See #2487)
1 parent 1b89bc9 commit e52c24c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

bin/install.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ if((get-executionpolicy) -gt 'RemoteSigned') {
1919
break
2020
}
2121

22+
if([System.Enum]::GetNames([System.Net.SecurityProtocolType]) -notcontains 'Tls12') {
23+
Write-Output "Scoop requires at least .NET Framework 4.5"
24+
Write-Output "Please download and install it first:"
25+
Write-Output "https://www.microsoft.com/net/download"
26+
break
27+
}
28+
2229
# get core functions
2330
$core_url = 'https://raw.github.com/lukesampson/scoop/master/lib/core.ps1'
2431
Write-Output 'Initializing...'

0 commit comments

Comments
 (0)