Files
hydra/resources/commonredist/install.bat
Chubby Granny Chaser 01d440590b feat: adding commonredist
2025-04-02 15:35:40 +01:00

36 lines
1.1 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
:: Request admin privileges if not already elevated
net session >nul 2>&1
if %errorLevel% neq 0 (
echo Requesting administrative privileges...
powershell -Command "Start-Process '%~f0' -Verb RunAs"
exit
)
:: Change to the scripts directory
cd /d "%~dp0"
echo Installing prerequisites silently...
:: Install .NET Framework 4.0
if exist dotNetFx40_Full_setup.exe dotNetFx40_Full_setup.exe /q /norestart /log dotnet_install.log
:: Install DirectX
if exist dxwebsetup.exe dxwebsetup.exe /Q
:: Install OpenAL
if exist oalinst.exe oalinst.exe /silent
:: Install Visual C++ Redistributables (2015-2019)
if exist vcredist_2015-2019_x64.exe vcredist_2015-2019_x64.exe /quiet /norestart
if exist vcredist_2015-2019_x86.exe vcredist_2015-2019_x86.exe /quiet /norestart
:: Install older Visual C++ Redistributables
if exist vcredist_x64.exe vcredist_x64.exe /quiet /norestart
if exist vcredist_x86.exe vcredist_x86.exe /quiet /norestart
:: Install XNA Framework 4.0
if exist xnafx40_redist.msi msiexec /i xnafx40_redist.msi /quiet /norestart
echo Installation complete!
pause