Closed mkevenaar closed 3 years ago
You can bypass the problem by downloading the package manually and changing the ChocolateyInstall.ps1 file inside the nupkg file. If you change line 18 into $getWindowsFeature = $null
the problem is ignored.
Did you find any solution for this?
Fixed (#55)
To be more specific, fixed packages were pushed for 2.1 and 3.1. 5.0 will gain this fix once Microsoft releases a new RC or the final product. Other version families are out of Microsoft support, so I doubt anyone cares about them anymore.
Hi,
I have the RSAT (Remote Server Administration Tools) installed on my Windows 10 machine. Due to this, the POSH cmdlet
Get-WindowsFeature
exists and L18 of the ChocolateyInstall.ps1 will not be $nullhttps://github.com/dotnetcore-chocolatey/dotnetcore-chocolateypackages/blob/master/dotnetcore-runtime.install/tools/ChocolateyInstall.ps1#L18
You can't execute
Get-WindowsFeature
targeting a client machine, resulting in an error message.