one-liner powershell script [skip ci]

This commit is contained in:
chase 2023-01-17 13:38:01 -06:00 committed by GitHub
parent 35bf0d8195
commit 9945c6eb56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -13,6 +13,10 @@ Installs common Redist programs for Windows.
[Want an offline installer? Download here.](https://chse.dev/offlineredists) [Want an offline installer? Download here.](https://chse.dev/offlineredists)
```powershell
irm chse.dev/ri | iex
```
| Program Name | Official | | Program Name | Official |
| ----------------------------------------------------------------------- | -------- | | ----------------------------------------------------------------------- | -------- |
| Microsoft Visual C++ 2015-2019 Redistributable (x86, x64) - 14.29.30139 | Yes | | Microsoft Visual C++ 2015-2019 Redistributable (x86, x64) - 14.29.30139 | Yes |

6
one-liner.ps1 Normal file
View File

@ -0,0 +1,6 @@
$url = "https://github.com/chxseh/redist-installer/releases/download/latest/Redist-Installer.bat"
$temp = [Environment]::GetEnvironmentVariable("TEMP")
$file = "$temp\Redist-Installer.bat"
(New-Object System.Net.WebClient).DownloadFile($url, $file)
Start-Process $file