Commands for installing Oculus without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
winget install --id Meta.Oculus -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Meta.Oculus -e --silentwinget uninstall --id Meta.Oculus -e --silentBy installer
64-bit · EXE · All users
setup.exe --unattended- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Oculus
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
$url = 'https://securecdn.oculus.com/binaries/download/?id=4281594222121950'
$sha256 = '7367AEB0E202B0A50976993FB2750E75A5215F9A0966FC8FB4E84807BA3B57F1'
$file = Join-Path $env:TEMP 'setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '--unattended' -Wait