1

我在创建无人参与的 Azure cmdlet 安装时遇到问题(这是一个 msi 文件,windowsazure-powershell.0.8.3.msi,当前版本)。

怎么知道安装需要的参数,应该怎么写?

这样?

$msifile= '<path>\windowsazure-powershell.0.8.3.msi' 
$arguments= ' /qn /l*v .\options.txt' 
Start-Process `
 -file  $msifile `
 -arg $arguments `
 -passthru | wait-process

那么我该如何执行呢?

提前致谢。

4

1 回答 1

1

不要担心所有的命令行开关。您可以使用 WMI 和 PowerShell 执行此操作

$product= [WMICLASS]"\\.\ROOT\CIMV2:win32_Product"
$product.Install("c:\temp\windowsazure-powershell.0.8.3.msi")
于 2014-05-31T17:05:14.967 回答