OpenAL
Install Detection
This script will look at the installed package list from Windows for anything matching OpenAL.
$Installed = Get-Package "NVIDIA PhysX System Software*"
if ($Installed.Length -ge 0) {
$Host.SetShouldExit(1)
} else {
$Host.SetShouldExit(0)
}
Install Script
Installs the OpenAL redistributable silently.
Write-Host "Installing OpenAL (2.0.7.0) Redistributable..."
Start-Process -FilePath "oalinst.exe" -ArgumentList "/S" -Wait -Passthru
Write-Host "Done!"