Initial Commit

This commit is contained in:
Chase 2022-04-08 23:18:32 -05:00 committed by chase
commit 28ab1649dd
No known key found for this signature in database
GPG Key ID: 9EC29E797878008C
4 changed files with 140 additions and 0 deletions

21
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Release
on:
push:
branches: [ main ]
jobs:
create_release:
name: Create GitHub Release
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Release"
files: |
Redist-Installer.bat

24
LICENSE.md Normal file
View File

@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <https://unlicense.org>

10
README.md Normal file
View File

@ -0,0 +1,10 @@
# Redist-Installer
Installs common Redist programs for Windows.
* VC 2008 -> 2019
* DirectX 9.0
* DirectX Addon Pack
* .NET 4.7.2
Permalink/Download: [https://git.io/redists](https://git.io/redists)

85
Redist-Installer.bat Normal file
View File

@ -0,0 +1,85 @@
@echo off
:: Permalink: https://git.io/redists
:: Run as Admin
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
title Redist Installer
echo Redist Installer
echo.
:: Make a temp place to store all the redists.
md %temp%\Redist-Installer >nul 2>&1
cd %temp%\Redist-Installer
:: Start the downloading...
:: Some of the following files are pulled from Discord's CDN. This is because they have been pulled from M$'s website multiple times in the past.
echo [1] Downloading Redists (This may take a while...)
echo Downloading 1/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://aka.ms/vs/16/release/vc_redist.x86.exe', 'vcredist2015_2017_2019_x86.exe')"
echo Downloading 2/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://aka.ms/vs/16/release/vc_redist.x64.exe', 'vcredist2015_2017_2019_x64.exe')"
echo Downloading 3/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://aka.ms/highdpimfc2013x64enu', '2013_x64.exe')"
echo Downloading 4/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://aka.ms/highdpimfc2013x86enu', '2013_x86.exe')"
echo Downloading 5/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe', '2012_x64.exe')"
echo Downloading 6/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe', '2012_x86.exe')"
echo Downloading 7/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/B/C/5BC5DBB3-652D-4DCE-B14A-475AB85EEF6E/vcredist_x86.exe', '2010_x86.exe')"
echo Downloading 8/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/3/2/2/3224B87F-CFA0-4E70-BDA3-3DE650EFEBA5/vcredist_x64.exe', '2010_x64.exe')"
echo Downloading 9/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://cdn.discordapp.com/attachments/710609237805498500/839636091417919488/2008_x86.exe', '2008_x86.exe')"
echo Downloading 10/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://cdn.discordapp.com/attachments/710609237805498500/839636081263640586/2008_x64.exe', '2008_x64.exe')"
echo Downloading 11/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://cdn.discordapp.com/attachments/710609237805498500/804707669428535366/dxwebsetup.exe', 'DirectX.exe')"
echo Downloading 12/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://cdn.discordapp.com/attachments/710609237805498500/785666488219992084/DX90c_Addon_Installer.exe', 'DirectXA.exe')"
echo Downloading 13/13...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://go.microsoft.com/fwlink/?LinkId=863262', 'dotNET.exe')"
:: Start the installing...
echo [2] Installing Redists (This may take a while...)
echo Installing 1/13...
vcredist2015_2017_2019_x86.exe /install /quiet /norestart
echo Installing 2/13...
vcredist2015_2017_2019_x64.exe /install /quiet /norestart
echo Installing 3/13...
2013_x86.exe /install /quiet /norestart
echo Installing 4/13...
2013_x64.exe /install /quiet /norestart
echo Installing 5/13...
2012_x86.exe /install /quiet /norestart
echo Installing 6/13...
2012_x64.exe /install /quiet /norestart
echo Installing 7/13...
2010_x86.exe /install /quiet /norestart
echo Installing 8/13...
2010_x64.exe /install /quiet /norestart
echo Installing 9/13...
2008_x86.exe /install /quiet /norestart
echo Installing 10/13...
2008_x64.exe /install /quiet /norestart
echo Installing 11/13...
start /wait DirectX.exe /Q
echo Installing 12/13...
start /wait DirectXA.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
echo Installing 13/13...
start /wait dotNET.exe /Q
:: Cleanup...
echo [3] Cleaning up...
cd %temp%
rmdir %temp%\Redist-Installer /s /q
echo.
echo Done!
echo.
echo Press any key to close.
pause>nul
exit