Issue #21496 has been updated by Josh Cooper. Description updated
---------------------------------------- Bug #21496: Unable to install windows packages using the EXE provider https://projects.puppetlabs.com/issues/21496#change-93760 * Author: Josh Rivers * Status: Duplicate * 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: <pre> package { "Firefox Setup 21.0": ensure => installed, source => 'C:\\Files\\Firefox Setup 21.0.exe', install_options => ['/S'] } </pre> When this is executed by 'puppet apply', the following windows command line is executed: <pre> cmd.exe /c start /w "C:\\Files\\Firefox Setup 21.0.exe" /S </pre> 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: <pre> ['cmd.exe', '/c', 'start', '/w', quote(resource[:source])] </pre> it also appears to have been correctly fixed in the same file on line 53: <pre> command = ['cmd.exe', '/c', 'start', '"puppet-uninstall"', '/w'] </pre> I propose changing line 44 to this: <pre> ['cmd.exe', '/c', 'start', '"puppet-uninstall"', '/w', quote(resource[:source])] </pre> -- 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.
