OpenAL: Difference between revisions

From LANCommander
(Created page with "Category:Redistributables {{Redistributable.Scripts.DetectInstall |Name = Install Detection |Description = This script will look at the installed package list from Windows for anything matching OpenAL. |RequiresAdmin = False |Contents = <syntaxhighlight lang="powershell" line> $Installed = Get-Package "NVIDIA PhysX System Software*" if ($Installed.Length -ge 0) { exit 1; } else { exit 0; } </syntaxhighlight> }} {{Redistributable.Scripts.Install |Name = Insta...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Redistributables]]
[[Category:Redistributables]]
{{Redistributable.DownloadBox
|Downloads =
{{Redistributable.DownloadBox.Row|Version = 2.0.7.0|File = OpenAL.zip|ReleaseDate = }}
}}
{{Redistributable.Scripts.DetectInstall
{{Redistributable.Scripts.DetectInstall
|Name = Install Detection
|Name = Install Detection
Line 5: Line 11:
|RequiresAdmin = False
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents = <syntaxhighlight lang="powershell" line>
$Installed = Get-Package "NVIDIA PhysX System Software*"
$Installed = Get-Package | Where-Object -Property Name -like "OpenAL*"


if ($Installed.Length -ge 0) {
if ($Installed.Length -ge 0) {
     exit 1;
     $Host.SetShouldExit(1)
} else {
} else {
     exit 0;
     $Host.SetShouldExit(0)
}
}
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 18:13, 19 December 2023


Downloads

Version Release Date File
2.0.7.0 Download

Install Detection

This script will look at the installed package list from Windows for anything matching OpenAL.

$Installed = Get-Package | Where-Object -Property Name -like "OpenAL*"

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!"