If you need to run this in an , you can invoke it from cmd like this:
catch Write-Host "Download failed: $_" -ForegroundColor Red exit 1 /quiet - no UI, /passive - shows progress (change to /quiet for total silence) $installArgs = "/quiet /norestart" accessdatabaseengine_x64.exe
if ($process.ExitCode -eq 0) Out-File -FilePath $logFile -Append If you need to run this in an
If you need to run this in an , you can invoke it from cmd like this:
catch Write-Host "Download failed: $_" -ForegroundColor Red exit 1 /quiet - no UI, /passive - shows progress (change to /quiet for total silence) $installArgs = "/quiet /norestart"
if ($process.ExitCode -eq 0) Out-File -FilePath $logFile -Append