Issue #21496 has been reported by Josh Rivers.
----------------------------------------
Bug #21496: Unable to install windows packages using the EXE provider
https://projects.puppetlabs.com/issues/21496
* Author: Josh Rivers
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category: windows
* Target version:
* Affected Puppet version: 3.2.1
* Keywords: windows exe package provider
* Branch:
----------------------------------------
I'm having some trouble getting a silent install of Firefox to run with the
windows package provider. My manifest looks like this:
package { "Firefox Setup 21.0":
ensure => installed,
source => 'C:\\Files\\Firefox Setup 21.0.exe',
install_options => ['/S']
}
When this is executed by 'puppet apply', the following windows command line is
executed:
cmd.exe /c start /w "C:\\Files\\Firefox Setup 21.0.exe" /S
If this didn't have the '/S' parameter, it would work, but with the '/S'
parameter, it returns an "Incorrect function" error. According to some blog
posts I have found (e.g.
http://www.catonrug.net/2013/04/start-wait-quotes-invalid-switch.html ), this
is a result of the "START" command believing that the '/S' switch is intended
for the "START" command, rather than passing it to the Firefox setup exe.
One way of resolving this is to add a "title" parameter to the START command,
which makes it interpret the rest of the line as parameters.
The defect appears to be in:
lib/puppet/provider/package/windows/exe_package.rb line 44:
['cmd.exe', '/c', 'start', '/w', quote(resource[:source])]
it also appears to have been correctly fixed in the same file on line 53:
command = ['cmd.exe', '/c', 'start', '"puppet-uninstall"', '/w']
I propose changing line 44 to this:
['cmd.exe', '/c', 'start', '"puppet-uninstall"', '/w', quote(resource[:source])]
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.