From 9945c6eb562edf5235e4d2fa9d0b8ab59b1e5823 Mon Sep 17 00:00:00 2001 From: chase Date: Tue, 17 Jan 2023 13:38:01 -0600 Subject: [PATCH] one-liner powershell script [skip ci] --- README.md | 4 ++++ one-liner.ps1 | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 one-liner.ps1 diff --git a/README.md b/README.md index 7f19e94..3283570 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,10 @@ Installs common Redist programs for Windows. [Want an offline installer? Download here.](https://chse.dev/offlineredists) +```powershell +irm chse.dev/ri | iex +``` + | Program Name | Official | | ----------------------------------------------------------------------- | -------- | | Microsoft Visual C++ 2015-2019 Redistributable (x86, x64) - 14.29.30139 | Yes | diff --git a/one-liner.ps1 b/one-liner.ps1 new file mode 100644 index 0000000..73e9c35 --- /dev/null +++ b/one-liner.ps1 @@ -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