Created
March 27, 2021 17:52
-
-
Save fuho/3bff4dc8d3d617f509b71fe17a11a8dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET currentPath=%~dp0 | |
SET currentPath=%currentPath:~0,-1% | |
SET backupOculusClient=%currentPath%\oculus_client_backup | |
SET localSupportDir=%programfiles%\Oculus\Support | |
SET downloadedOculusClient=%currentPath%\Support\oculus-client | |
set localOculusClientDir=%localSupportDir%\oculus-client | |
echo This is a script to fix the Oculus Grey Screen of Death Issue | |
echo ------------------------------------------------------------- | |
echo If you have just installed new Oculus in the past few days chances are that all you're seeing is a grey screen after you choose an avatar. This will replace the currently installed version temporarily with an older one, then you will finish logging in and connect your Oculus and then we'll just put your origianally installed version back.\n Make sure to first download support.rar and unpack it in place; You're probably in your downloads folder, so download it here and unpack it here! Download it here: https://drive.google.com/file/d/1p_ikHG5BzXUVN1eb5dMhoDverod4ijlY/edit" | |
pause | |
echo The current directory is %currentPath% | |
echo The current user is %USERNAME% | |
echo "################################" | |
echo "Checking if Support dir downloaded..." | |
IF NOT EXIST "%downloadedOculusClient%" ( | |
echo "You have to download the Support.rar and unpack it here!" | |
echo "Download it here: https://drive.google.com/file/d/1p_ikHG5BzXUVN1eb5dMhoDverod4ijlY/edit" | |
pause | |
exit /b | |
) | |
echo "################################" | |
echo "Stopping Oculus processes" | |
taskkill /F /IM oculus-platform-runtime.e /T | |
taskkill /F /IM OVRServiceLauncher.exe /T | |
taskkill /F /IM OVRServer_x64.exe /T | |
taskkill /F /IM OculusDash.exe /T | |
taskkill /F /IM OculusClient.exe /T | |
echo "################################" | |
echo "Creating %backupOculusClient% directory to store backup into" | |
if not exist "%backupOculusClient%" mkdir "%backupOculusClient%" | |
echo "################################" | |
echo "Backing up current oculus-client" | |
copy /b/v/y "%localOculusClientDir%" "%backupOculusClient%" | |
echo "################################" | |
echo "Overwriting current (broken) oculus-client with and older version you downloaded." | |
copy /b/v/y "%downloadedOculusClient%" "%localSupportDir%" | |
echo "Run Oculus, login, then come back here, don't close this, come back here after you logged in and connected your Oculus!" | |
echo "Press any key, when ready...but not before :)" | |
pause | |
echo "################################" | |
echo "Stopping Oculus processes again" | |
taskkill /F /IM oculus-platform-runtime.e /T | |
taskkill /F /IM OVRServiceLauncher.exe /T | |
taskkill /F /IM OVRServer_x64.exe /T | |
taskkill /F /IM OculusDash.exe /T | |
taskkill /F /IM OculusClient.exe /T | |
echo "################################" | |
echo "Now that you're logged in let's overwrite the overwrited client with your own backup" | |
xcopy /H /E /V /R /K /O "%backupOculusClient%" "%localOculusClientDir%" | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment