Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on Win7 #2487

Closed
choman opened this issue Aug 10, 2018 · 4 comments
Closed

Can't install on Win7 #2487

choman opened this issue Aug 10, 2018 · 4 comments

Comments

@choman
Copy link

choman commented Aug 10, 2018

Just went to try the scoop installer after installing powershell 3.0 on Win7

iex (new-object net.webclient).downloadstring('https://get.scoop.sh') > err.log 2>&1
Initializing...

Invoke-Expression : Cannot process argument transformation on parameter 'scheme'. Cannot convert value "Tls12" to type
"System.Net.SecurityProtocolType". Error: "Unable to match the identifier name Tls12 to a valid enumerator name.
Specify one of the following enumerator names and try again: Ssl3, Tls"
At line:24 char:1
+ Invoke-Expression (new-object net.webclient).downloadstring($core_url)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Invoke-Expression], ParameterBindingArgumentTransformationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Microsoft.PowerShell.Commands.InvokeExpressionComma
   ndInitializing...
@chawyehsu
Copy link
Member

Install .NET Framework 4.5 or above then try again.

@rasa
Copy link
Member

rasa commented Aug 14, 2018

Is 4.5+ always required? If so, we should update the docs.

@rasa rasa closed this as completed Aug 14, 2018
@chawyehsu
Copy link
Member

@rasa Yes, Tls12 needs .NET 4.5 at least.

@r15ch13
Copy link
Member

r15ch13 commented Aug 17, 2018

Should I add a check for Tls12 to bin\install.ps1?

if([System.Enum]::GetNames([System.Net.SecurityProtocolType]) -notcontains 'Tls12') {
    Write-Output "Scoop requires at least .NET Framework 4.5 to support TLS1.2 connections."
    Write-Output "Please download and install it first:"
    Write-Output "https://docs.microsoft.com/en-us/dotnet/framework/install/index"
    break
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants