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 ????? 
                You can retrieve the MSI installed packaged product code on the windows OS using PowerShell with Get-Package or Get-WmiObject command.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With