Skip to content

Instantly share code, notes, and snippets.

@rysstad
Last active April 24, 2024 11:49
Show Gist options
  • Save rysstad/7c765f840156a68ca30a to your computer and use it in GitHub Desktop.
Save rysstad/7c765f840156a68ca30a to your computer and use it in GitHub Desktop.
Install MSI package silently with powershell
$msiPackageToInstall = "<path to .msi>"
# save log from installation to temp file
$tmpFile = [System.IO.Path]::GetTempFileName()
Start-Process msiexec -ArgumentList "/i $msiPackageToInstall /qn /L*v $tmpFile" -NoNewWindow -Wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment