Last active
April 24, 2024 11:49
-
-
Save rysstad/7c765f840156a68ca30a to your computer and use it in GitHub Desktop.
Install MSI package silently with powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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