Skip to content

Custom Installations

Atiq Rahman edited this page Mar 15, 2021 · 20 revisions

mostly non-choco

pwsh instruction to deploy powershell-core

  • First, invoke legacy powershell since we are updating the core version
Start-Process powershell -ArgumentList '-NoExit', '-NoLogo', '.\Init-App admin' -Verb Runas -ErrorAction 'stop'
  • Then, we deploy/upgrade,
Invoke-WebRequest https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.ps1 -OutFile install-powershell.ps1
install-powershell -Destination D:\PFiles_x64\choco\pwsh
Remove-Item install-powershell.ps1

UseMSI does not support custom destination,

.\install-powershell -UseMSI -Destination D:\PFiles_x64\choco\pwsh

throws error: Parameter set cannot be resolved using the specified named parameters

refs

dotcore-sdk ref

Invoke-WebRequest https://raw.githubusercontent.com/dotnet/install-scripts/master/src/dotnet-install.ps1 -OutFile dotnet-install.ps1
dotnet-install -Channel LTS -InstallDir D:\PFiles_x64\choco\dotnet -NoPath
Remove-Item dotnet-install.ps1
Clone this wiki locally