$cabFile = "$tempDir\office16.cab" $extractDir = "$tempDir\extracted"
$latestVersion = $latestUpdate.Version $updateFileUrl = $latestUpdate.Location patch file microsoft office 2016
Write-Host "Installing update (silent mode)..." -ForegroundColor Yellow Start-Process -FilePath $patchFile -ArgumentList "/quiet /norestart" -Wait -NoNewWindow $cabFile = "$tempDir\office16
if (-not $latestUpdate) Write-Host "Could not parse latest update version." -ForegroundColor Red exit 1 patch file microsoft office 2016