Reputation: 5
I'm attempting to install Applications (Adobe Reader, Access Database, etcetera) on a Windows Server 2012 R2 Node by using Chef to download compiled AutoIT scripts onto the Node along with the corresponding installers - I've been using this approach because not all .exe files have silent installers and in my (limited) experience sometime a GUI installer gives the user more control over the application, allowing a user to set an application to "Check for updates manually", etcetera.
The compiled AutoIT scripts I've made work perfectly, but Chef for some reason will not run these .exe files.
I've tried the following approaches with Chef (placing both the application installers and the AutoIT Compiled Scripts in 'C:\To_Install'):
powershell_script 'Run AutoIT installer with PowerShell' do
code <<-EOH
C:\\To_Install\\#{fileName}
EOH
end
and
execute 'Run AutoIT installer with CMD' do
command "C:\\To_Install\\#{fileName}"
end
I am positive that all the applications I wish to install have been transferred to the node without error, and Chef is interacting with the node properly in all other ways (setting the clock, changing user permissions and settings, creating directories, etcetera).
Is there something I've overlooked? Does Chef run .exe files through some different process than a typicall user would?
Thanks in advance!
Upvotes: 0
Views: 249
Reputation: 54251
Copying down from comments:
Yeah, so WinRM runs in a "headless session". Graphical tools generally won't work. I don't know of any good way around this. You'll need to fix your installers to have a true silent mode, or re-package them using MSI or Nuget.
Upvotes: 0