NVIDIA PhysX System Software: Difference between revisions
DoctorDalek (talk | contribs) (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 PhysX. |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 = Instal...") |
DoctorDalek (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
if ($Installed.Length -ge 0) { | if ($Installed.Length -ge 0) { | ||
$Host.SetShouldExit(1) | |||
} else { | } else { | ||
$Host.SetShouldExit(0) | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 00:14, 30 November 2023
Install Detection
This script will look at the installed package list from Windows for anything matching PhysX.
$Installed = Get-Package "NVIDIA PhysX System Software*"
if ($Installed.Length -ge 0) {
$Host.SetShouldExit(1)
} else {
$Host.SetShouldExit(0)
}
Install Script
This script installs the NVIDIA PhysX redistributable silently.
Write-Host "Installing PhysX (9.14.0702) Redistributable..."
Start-Process -FilePath "msiexec.exe" -ArgumentList '/i "PhysX-9.14.0702-SystemSoftware.msi" /quiet /norestart' -Wait -Passthru
Write-Host "Done!"