Update install-powershell.ps1

This commit is contained in:
Markus Fleschutz 2023-07-01 16:48:51 +02:00
parent be62945ec8
commit e845c67441

View File

@ -74,7 +74,7 @@ if (-not $Destination) {
$Destination = $PSCmdlet.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Destination)
if (-not $UseMSI) {
Write-Verbose "Destination: $Destination" -Verbose
Write-Host "Installation destination path: $Destination"
} else {
if (-not $IsWinEnv) {
throw "-UseMSI is only supported on Windows"
@ -381,7 +381,7 @@ try {
}
$downloadURL = "https://github.com/PowerShell/PowerShell/releases/download/v${release}/${packageName}"
Write-Host "Downloading from: $downloadURL"
Write-Host "Downloading: $downloadURL"
$packagePath = Join-Path -Path $tempDir -ChildPath $packageName
if (!$PSVersionTable.ContainsKey('PSEdition') -or $PSVersionTable.PSEdition -eq "Desktop") {