Reputation: 187
I'm having problems to create an unattended installation of cmdlets of Azure (It's a msi file, windowsazure-powershell.0.8.3.msi, current version).
How can I know the parameters that installation needs and how I should write it?
In this way?
$msifile= '<path>\windowsazure-powershell.0.8.3.msi'
$arguments= ' /qn /l*v .\options.txt'
Start-Process `
-file $msifile `
-arg $arguments `
-passthru | wait-process
So how can I perform that?
Thanks in advance.
Upvotes: 1
Views: 659
Reputation: 25810
Don't worry about all the commandline switches. You can do this using WMI and PowerShell
$product= [WMICLASS]"\\.\ROOT\CIMV2:win32_Product"
$product.Install("c:\temp\windowsazure-powershell.0.8.3.msi")
Upvotes: 1