
Fix: Oculus encountered an error during installation
Issue:
If you are trying to install Oculus running OculusSetup.exe, but get an error:
“Restart Computer. Sorry, we encountered an error during installation. Please restart your computer and try running Oculus Setup again.”
Repeated Issue:
And even after you reboot, you still face this error…
Check 1:
1. Check your logs:
C:\Users\Abir\AppData\Local\Oculus\OculusSetup.log
Replace “Abir” with your username
2. If you find lines like:
Exception deleting ‘C:\Users\Abir\AppData\Local\Temp\OculusSetup-ff4b833a-8bd3-467b-a5c1-14d1ab58a021’:
System.UnauthorizedAccessException: Access to the path ‘DaybreakNative.dll’ is denied.
Means it needs Admin permissions.
Fix:
1. First delete this folder:
C:\Users\Abir\AppData\Local\Oculus
and
C:\Program Files\Oculus
(Not just the contents.. but the full folders)
It will ask for Admin permission:
This fix will not work if both Oculus directories are not deleted properly.
2. Start installation again as Administrator:
After this, hopefully installation will continue smoothly:
And it should get installed:
Check 2:
Also, it needs about 9.18GB to install. So you should have plenty of free disk space.