I need to install some product using Puppet on Windows. I use exec recource
exec { 'install':
command => 'C:\\windows\system32\cmd.exe /c "c:\\Program Files\\zabbix_agentd_64.exe --config c:\\Program Files\\zabbix_agentd.conf --install"',
}
Syntax is ok, but I get
'c:/Program' is not recognized as an internal or external command
I tried also command => 'C:\\windows\system32\cmd.exe /c "c:\Program Files\zabbix_agentd_64.exe --config c:\Program Files\zabbix_agentd.conf --install"'
and command => 'C:\\windows\system32\cmd.exe /c "c:\\Program/Files\\zabbix_agentd_64.exe --config c:\\Program/Files\\zabbix_agentd.conf --install"'
but it says syntax error (rightly in fact). Any ideas?