diff --git a/setup-powershellget/Setup/ShortcutStartup.ps1 b/setup-powershellget/Setup/ShortcutStartup.ps1 index 3863027c6fd6..9c5e77b44433 100644 --- a/setup-powershellget/Setup/ShortcutStartup.ps1 +++ b/setup-powershellget/Setup/ShortcutStartup.ps1 @@ -51,7 +51,10 @@ To use Azure Service Management cmdlets please execute the following cmdlet: $VerbosePreference = "Continue" } } -catch { Write-Output $error } -if ($error) { - Read-Host -Prompt "An error occured during installation. Press any key..." +catch +{ +Write-Output "An error occured during installation." +Write-Output $error +Write-Output "Press any key..." +$host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") } \ No newline at end of file