diff --git a/32 b/32 index 23bc428..b812801 100644 --- a/32 +++ b/32 @@ -1,5 +1,4 @@ Add-Type -AssemblyName System.IO.Compression.FileSystem -Add-Type -AssemblyName "System.Console" function Main { if ($PSVersionTable.PSEdition -ne 'Desktop' -and $env:OS -ne 'Windows_NT') { @@ -168,4 +167,4 @@ function Main { Main Write-Host "Press any key to exit." -[Console]::ReadKey($true) > $null \ No newline at end of file +$null = [System.Console]::ReadKey($true) \ No newline at end of file diff --git a/64 b/64 index 9700420..1c6945e 100644 --- a/64 +++ b/64 @@ -1,5 +1,4 @@ Add-Type -AssemblyName System.IO.Compression.FileSystem -Add-Type -AssemblyName "System.Console" function Main { if ($PSVersionTable.PSEdition -ne 'Desktop' -and $env:OS -ne 'Windows_NT') { @@ -189,4 +188,4 @@ function Main { Main Write-Host "Press any key to exit." -[Console]::ReadKey($true) > $null \ No newline at end of file +$null = [System.Console]::ReadKey($true) \ No newline at end of file diff --git a/dx b/dx index 5a787a6..25578c4 100644 --- a/dx +++ b/dx @@ -1,5 +1,4 @@ Add-Type -AssemblyName System.IO.Compression.FileSystem -Add-Type -AssemblyName "System.Console" function Main { if ($PSVersionTable.PSEdition -ne 'Desktop' -and $env:OS -ne 'Windows_NT') { @@ -158,4 +157,4 @@ function Main { Main Write-Host "Press any key to exit." -[Console]::ReadKey($true) > $null \ No newline at end of file +$null = [System.Console]::ReadKey($true) \ No newline at end of file diff --git a/index.html b/index.html index 8396e62..eb1e20d 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,6 @@ # This script is hosted on https://get.msvc.win/ for MSVC Win Project
To get started, run irm get.msvc.win | iex inside of PowerShell
 
 Add-Type -AssemblyName System.IO.Compression.FileSystem
-Add-Type -AssemblyName "System.Console"
 
 function Main {
     if ($PSVersionTable.PSEdition -ne 'Desktop' -and $env:OS -ne 'Windows_NT') {
@@ -196,4 +195,4 @@ function Main {
 
 Main
 Write-Host "Press any key to exit."
-[Console]::ReadKey($true) > $null
\ No newline at end of file
+$null = [System.Console]::ReadKey($true)
\ No newline at end of file