Novetus_src/scripts/batch/Novetus_dependency_installer.bat
2022-03-06 11:52:34 -07:00

107 lines
5.0 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.0 (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 - Media Feature Pack for Windows 8/8.1/10/11 N Editions (REQUIRED for 2011+)
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.0...
"%CD%/_redist/NET Framework/dotNetFx40_Full_x86_x64.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 Media Feature Pack from Microsoft's website for your respective version of Windows.
echo https://support.microsoft.com/en-us/topic/media-feature-pack-list-for-windows-n-editions-c1c6fffa-d052-8338-7a79-a4bb980a700a
echo A web browser window to the site will pop up after you press a key.
echo Note: you can check what version you are on by goting to Settings, then System, then go down to About.
pause
start "" https://support.microsoft.com/en-us/topic/media-feature-pack-list-for-windows-n-editions-c1c6fffa-d052-8338-7a79-a4bb980a700a
pause
goto REDISTINSTALLER