Fix: Oculus encountered an error during installation
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.”
And even after you reboot, you still face this error…
1. Check your logs:
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.
1. First delete this folder:
(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:
Also, it needs about 9.18GB to install. So you should have plenty of free disk space.