Skip to content

Commit

Permalink
#185 Fix installation script (windows) (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
polycone authored Jul 29, 2023
1 parent 387b9ff commit 16acc44
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/scripts/install.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
@echo off
setlocal enabledelayedexpansion

FOR /F "tokens=2* skip=2" %%a in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "personal"') do set DocumentsFolder=%%b
for /F "tokens=2* skip=2" %%a in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "personal"') do set DocumentsFolder=%%b

echo "Installing multiplayer mod in folder: %DocumentsFolder%\Klei\OxygenNotIncluded\mods\Local\MultiplayerMod\"
xcopy /s .\MultiplayerMod %DocumentsFolder%\Klei\OxygenNotIncluded\mods\Local\MultiplayerMod\
call set "DocumentsFolder=!DocumentsFolder!"
set InstallationPath=%DocumentsFolder%\Klei\OxygenNotIncluded\mods\Local\MultiplayerMod\

echo "Installing multiplayer mod in folder: %InstallationPath%"
xcopy /s .\MultiplayerMod "%InstallationPath%"
pause

0 comments on commit 16acc44

Please sign in to comment.