How to install .MSI using PowerShell

powershell, windows-installer

Solution

Why get so fancy about it? Just invoke the .msi file:

& <path>\filename.msi

or

Start-Process <path>\filename.msi

Edit: Full list of Start-Process parameters

https://ss64.com/ps/start-process.html

Problem

I am very new to PowerShell and have some difficulty with understanding. I want to install an `.MSI` inside PowerShell script. Can please explain me how to do that or provide me beginners level tutorial. ``` $wiObject = New-Object -ComObject WindowsInstaller.Installer ????? ```

Original source