This repository has been archived by the owner on Jul 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
EmmVRC+Melonloader_Autoinstaller.bat
88 lines (87 loc) · 3.88 KB
/
EmmVRC+Melonloader_Autoinstaller.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
@echo off
echo.
echo.
echo.
echo.
echo.
echo [34m
echo [1m
echo ^ __ __
echo ^ _______ ____ _____ ^| ^| ______ ____ _____ ^| ^|
echo ^ \_ __ \_/ __ \ \__ \ ^| ^| / ___/_/ __ \ \__ \ ^| ^|
echo ^ ^| ^| \/\ ___/ / __ \^| ^|__ \___ \ \ ___/ / __ \^| ^|__
echo ^ ^|__^| \____^> (______/____//_____/ \____^> (______/____/
echo [0m
echo ^ --------------------------------------------------------
echo ^ ^| MelonLoader - EmmVRC AutoInstaller v1.9 by realseal ^|
echo ^ ^| EmmVRC by thetrueyoshifan (thetrueyoshifan.com) ^|
echo ^ ^| MelonLoader by Herp Derpinstine (melonwiki.xyz) ^|
echo ^ --------------------------------------------------------
echo.
echo Checking VrChat installation..
set /A x=0
IF NOT EXIST Vrchat.exe (
c:
IF EXIST "C:\Program Files (x86)\Steam\steamapps\common\VRChat\VRChat.exe" ( cd "C:\Program Files (x86)\Steam\steamapps\common\VRChat"
) else (
d:
IF EXIST "D:\Games\Steam\Steamapps\common\VRChat\VRChat.exe" ( cd "D:\Games\Steam\Steamapps\common\VRChat"
) else (
IF EXIST "D:\Steam\Steamapps\common\VRChat\VRChat.exe" ( cd "D:\Steam\Steamapps\common\VRChat"
) else (
echo.
echo [31m
echo [1m
echo "VrChat.exe" not found
echo Please put this file in the VRChat installation folder^!
echo To find it:
echo Open Steam ^> Library ^> Right click VrChat ^> Manage ^> Browse local files
echo [0m
echo.
echo.
echo.
pause
)
)
)
)
IF EXIST VrChat.exe (
echo Done!
echo Cleaning up existing MelonLoader/EmmVRC installation..
rem Melonloader
IF EXIST MelonLoader rd /S /Q MelonLoader
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
IF EXIST version.dll del version.dll
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
IF EXIST MelonLoader.zip del MelonLoader.zip
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
IF EXIST NOTICE.txt del NOTICE.txt
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
IF EXIST winmm.dll del winmm.dll
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
IF EXIST Mono.Cecil.dll del Mono.Cecil.dll
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
rem EmmVRC
IF EXIST Mods\emmVRCLoader.dll del Mods\emmVRCLoader.dll
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
echo Done!
echo Downloading MelonLoader..
powershell -Command "Invoke-WebRequest https://github.com/LavaGang/MelonLoader/releases/latest/download/MelonLoader.x64.zip -Outfile MelonLoader.zip"
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
echo Done!
echo Installing MelonLoader..
powershell -Command "Expand-Archive MelonLoader.zip -DestinationPath ..\VRchat"
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
IF NOT EXIST Mods md Mods
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
IF EXIST MelonLoader.zip del MelonLoader.zip
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
echo Done!
echo Downloading EmmVRC..
powershell -Command "Invoke-WebRequest https://dl.emmvrc.com/downloads/emmVRCLoader.dll -Outfile Mods\emmVRCLoader.dll"
IF %ERRORLEVEL% NEQ 0 (set /A x=%x%+1)
echo Done!
IF %x% EQU 0 (echo [32m [1m & echo. ^ ---------------------------------------------------------- & echo. ^ ^| Melonloader and EmmVRC have been successfully updated! ^| & echo. ^ ^| Please consider donating to the Developers ^<3 ^| & echo. ^ ---------------------------------------------------------- & echo. [0m
) else (echo [31m [1m & echo. ^ ------------------------------ & echo. ^ ^| sript was NOT successful ^| & echo. ^ ^| close VrChat and try again ^| & echo. ^ ------------------------------ [0m)
pause
)