-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstall.bat
More file actions
25 lines (21 loc) · 676 Bytes
/
install.bat
File metadata and controls
25 lines (21 loc) · 676 Bytes
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
@echo off
echo BEFORE RUNNING THIS SCRIPT, MAKE SURE YOU MOVE THE PLUGIN SDK FOLDER IN FOLDER THAT YOU WON'T DELETE
pause
cls
echo Locating the game directory...
set "gameDir=%MGR_PLUGIN_SDK_GAME_PATH%"
for /f "delims=" %%i in ('powershell -command "(New-Object -ComObject Shell.Application).BrowseForFolder(0, 'Select your game directory', 0, 0).Self.Path"') do set "gameDir=%%i"
if not defined gameDir (
echo No directory selected. Exiting installer.
exit /b
)
if not exist "%gameDir%" (
echo Invalid game directory. Exiting installer.
exit /b
)
cls
setx MGR_PLUGIN_SDK "%CD%\\"
setx MGR_PLUGIN_SDK_GAME_PATH "%gameDir%\\"
cls
echo Installed.
pause >nul