Novetus_src/scripts/batch/Novetus_dependency_installer.bat
2022-11-01 16:09:02 -07:00

104 lines
4.8 KiB
Batchfile

@ECHO OFF
setlocal
cd /d %~dp0
:REDISTINSTALLER
TITLE NOVETUS DEPENDENCY INSTALLER
ECHO ---------------------------------------------------------------------------
ECHO NhhhhhhhhhhN hsssoosssd
ECHO NyyyyhhhhyyhdN hoo++++++h
ECHO NyyyyyhhhhyyyhN hoo+++///h
ECHO NssssyyyyyhyyyhdN hoo+++///h
ECHO Nsossssyyyyyyyyyhm hsoo++///h
ECHO NsssssssssyyyyyyyhdN hssoo++//h
ECHO Nsssssssssssyyyyhhhdm hsssoo+++h
ECHO NyssssssssysyyyyhhhhhdN NNNNNmmmmdddddhhysoooo+++ymNN
ECHO Nhyyssssssmdyyyyhhhhhyhyysssssooooooooosssooooo++osssyhdmN
ECHO Nhyyyyssssddhyyyhhyyysssosyyhhhddmmmmmmmyooooo+++yhyssoosydN
ECHO NdhhyyyysssoosyhyyyssooooydN y++++++++hN NNdhsoohN
ECHO NmdhhhyyyysyhddmNmhyssooooooshN s++++++++h doosm
ECHO NNdhysoyyyysssssm NdsoooooooooydN s/////+++h NmyooyN
ECHO Ndysoosyhyysssooosm myooooooososhN s///////+h Ndhsoshm
ECHO mhsoosydmNmysooooooom NdssssssssooydN s////////hdhssosydN
ECHO NhsosydN Nsoooo+++om mhssssssoooohm y++/////+soosyhmN
ECHO NhoosdN Nsooo+++oom NdyssssooooosdN Ny++++oooosydmN
ECHO msood Noooooooosm Nhssooooooooydhysoooo++++hN
ECHO NhooshmN Nsoooooossm Nmhsoooooooooooso++////++h
ECHO Nhysossyhhdddoooooooosdmmmmmdddhhhyysssoooooooooo++ss++//++++h
ECHO Nmhyyssooooooooooooosssooooooossssyyhhdds+++++++++++++++oood
ECHO NNmmmddssooooooohhhhddddmmmNNNN Ny+++++++++++++osssd
ECHO Nyyssssoosm Nds+++++++++oosssyd
ECHO Nhyyysssssm Nho++++++oossssyd
ECHO Nyyyyyssssm ms+++++ooossssd
ECHO Nyyyssssssm Nho+++ooossssd
ECHO Nhyyyyyyyym mysssssyyyyd
ECHO ---------------------------------------------------------------------------
ECHO.
ECHO NOVETUS DEPENDENCY INSTALLER
ECHO.
ECHO Please install the following if you haven't already:
ECHO 1 - Microsoft .NET Framework 2.0 (REQUIRED for the ROBLOX Script Generator SDK tool)
ECHO 2 - Microsoft .NET Framework 4.8 (REQUIRED for the Novetus Launcher)
ECHO 3 - .NET 4.0 Update (KB2468871, REQUIRED for Windows XP and Vista)
ECHO 4 - Microsoft Visual C++ Redistributables 2005 (32-bit, REQUIRED for 2007)
ECHO 5 - Microsoft Visual C++ Redistributables 2008 (32-bit, REQUIRED for 2008 and above)
ECHO 6 - Windows Media Player (REQUIRED for 2010L+)
ECHO 7 - Exit
ECHO.
SET /P M=Choose an option by typing the number corresponding to which depenency you want to install:
IF %M%==1 goto net2
IF %M%==2 goto net4
IF %M%==3 goto net4update
IF %M%==4 goto vc2005
IF %M%==5 goto vc2008
IF %M%==6 goto mfp
IF %M%==7 EXIT
EXIT
:net2
CLS
echo Installing Microsoft .NET Framework 2.0...
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT
if %OS%==32BIT "%CD%/_redist/NET Framework/NetFx20SP2_x86.exe"
if %OS%==64BIT "%CD%/_redist/NET Framework/NetFx20SP2_x64.exe"
pause
goto REDISTINSTALLER
:net4
CLS
echo Installing Microsoft .NET Framework 4.8...
"%CD%/_redist/NET Framework/ndp48-x86-x64-allos-enu.exe"
pause
goto REDISTINSTALLER
:net4update
CLS
echo Installing .NET 4.0 Update (KB2468871)...
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT
if %OS%==32BIT "%CD%/_redist/NET Framework/NDP40-KB2468871-v2-x86 (XP and Vista Only).exe"
if %OS%==64BIT "%CD%/_redist/NET Framework/NDP40-KB2468871-v2-x64 (XP and Vista Only).exe"
pause
goto REDISTINSTALLER
:vc2005
CLS
echo Installing Microsoft Visual C++ Redistributables 2005 (32-bit)...
"%CD%/_redist/Visual C++ Redistributables/vcredist2005_x86.exe"
pause
goto REDISTINSTALLER
:vc2008
CLS
echo Installing Microsoft Visual C++ Redistributables 2008 (32-bit)...
"%CD%/_redist/Visual C++ Redistributables/vcredist2008_x86.exe"
pause
goto REDISTINSTALLER
:mfp
CLS
echo Please install the Windows Media Player through Windows' "Add a feature" utility.
echo Windows 7+: Go to the Control Panel, Programs and Features, go to "Turn Windows features on and off", and enable Windows Media Player in Media Features.
echo Windows 10+: Go to the Settings app, Apps, Optional Features, then search "Windows Media Player", then select it and press Install.
pause
goto REDISTINSTALLER