The following choco install command works fine:
choco Install 'InstallTest' -y --source 'C:\installtest' --params="'/serverinstance:MyServer /buildtype:OTP'"
I now have the following, in a Puppet manifest:
package { 'InstallTest':
ensure => installed,
install_options => ['-params','"', /serverinstance:MyServer, /buildtype:OTP, '"'],
source => 'c:\installtest',
}
I thought that I was correctly covering spaces with commas, etc, but puppet parser throws the following error:
puppet : [1;31mError: Could not parse for environment production: invalid byte sequence in UTF-8[0m
Without the install_options line, it compiles fine.
What should the correct syntax be?