在chef安装msi时传递参数
Pass the parameter at the time of msi installation in chef
我想安装msi 包。安装时我想更改安装目录。所以我需要在 windows_package.
中传递我的自定义路径
谁能告诉我如何实现它。
此致,
拉马杜赖
使用options
属性。 Chef 文档中的示例:
windows_package 'Microsoft Visual C++ 2005 Redistributable' do
source 'https://download.microsoft.com/download/6/B/B/6BB661D6-A8AE-4819-B79F-236472F6070C/vcredist_x86.exe'
installer_type :custom
options '/Q'
end
我想安装msi 包。安装时我想更改安装目录。所以我需要在 windows_package.
中传递我的自定义路径谁能告诉我如何实现它。
此致, 拉马杜赖
使用options
属性。 Chef 文档中的示例:
windows_package 'Microsoft Visual C++ 2005 Redistributable' do
source 'https://download.microsoft.com/download/6/B/B/6BB661D6-A8AE-4819-B79F-236472F6070C/vcredist_x86.exe'
installer_type :custom
options '/Q'
end