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.
The setup leavers no folders in Users. It does create the Oculus folder where it wants to install itself, but leaves no log files anywhere. (Win7).
Also, ran as Admin, still same error.
It goes all the way to end, asks all device driver permissions up to Android device, after which it says Windows doesn’t trust the signature, I click continue, it continues, installs about 10GB of stuff, then exits with above message and deletes all the files installed.
I do have a 100GB free so it shouldn’t be a problem.
Also had to start the setup with “OculusSetup.exe /bypassHotfixCheck” due to that bug of not detecting the existing windows updates.
I really wouldn’t like to upgrade to Win10, it creeps me out.