Not able to install msi using the chef recipe which is called from packer template

12 views
Skip to first unread message

Anup Kulkarni

unread,
Apr 16, 2019, 4:54:48 AM4/16/19
to Packer
Hi All,

I am trying to install msi file from the chef recipe which is stored in .rb file and that I am calling in the Powershell script, which is being called from the packer template.

Powershell code contents
$ruby = "C:\opscode\chef\embedded\bin\rubyw.exe"
& $ruby `"$deploydir\ABBYY\deploy_app_ruby.rb`"


Chef recipe contents


powershell_script 'install_app' do

  code <<-EOH

  msiexec /i "$deploydir\ABBYY\EsdServerSetup.msi" /quiet /log "c:\temp\install.log"

  EOH

end



However, it is not working . I would need help, thank you!

Reply all
Reply to author
Forward
0 new messages