Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Silent Args being passed as a string array cause package failure #808
First bug to come out of #697. https://chocolatey.org/docs/helpers-install-chocolatey-package#parameters SilentArgs is now strictly a string instead of left up for interpretation. Most items were converted in this way to provide clarity.
https://chocolatey.org/packages/OpenSSL.Light#files - chocolateyInstall.ps1:
silentArgs = '/silent', '/verysilent', '/sp-', '/suppressmsgboxes', "/DIR=`"$installDir`"";
ERROR: Cannot process argument transformation on parameter 'silentArgs'. Cannot convert value to type System.String. The install of openssl.light was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\OpenSSL.Light\tools\chocolateyInstall.ps1'.
Yes - in all examples and in the old documentation for the last five
You can look at the older wiki docs and the history of those wiki pages to
On Saturday, June 18, 2016, Jakub Berezanski email@example.com
Ah, indeed, forgot about the wiki for a moment.
However, perhaps this is a good time for a small official usability improvement? Changing the parameter to a string would be a backward compatible change, I believe, and it would help packages with complex installer argument construction logic (such as Visual Studio) - those packages would be able to accumulate installer arguments in an array and pass it unmodified to the helper. This would also align the helper with existing PowerShell cmdlets which declare an ArgumentList parameter, where arguments are passed as an array (e.g. Invoke-Command, Start-Process, New-Object).