-
Notifications
You must be signed in to change notification settings - Fork 907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotSilent fails with "Cannot bind argument to parameter statements because it is an empty string" #819
Comments
Chocolatey - let's update this to say NotSilent is broken. As a workaround On Tuesday, June 21, 2016, SecTec notifications@github.com wrote:
Rob http://codebetter.com/robreynolds |
Another fallout from #697. |
This will be out in 0.9.10.3 |
Attempting a non-silent install fails with `Cannot bind argument to parameter 'statements' because it is an empty string.` This is due to auto documentation changes and setting parameter values mandatory. Ensure that statements is no longer mandatory to fix passing empty arguments along.
* stable: (GH-826) SYSTEM user always uses machine TEMP (GH-808) Allow silent args as array (GH-821) ValidExitCodes not recognized return 0 (GH-818) Allow disk to catch up - sleep (GH-822) Provide pending override and file wait (GH-818) Wait for processes to exit + 2 seconds (maint) formatting (GH-819) Fix - NotSilent install failure binding (GH-775) remove 7za (GH-775) Use 7z instead of 7za
Hi,
I'm running choco v 0.9.10.2.
Since the upgrade to 0.9.10.2 I can't update any installed package.
I don't know if its a problem with the package or chocolaty (sorry if I'm writing to the wrong people).
Every package fails its upgrade with
Cannot bind argument to parameter 'statements' because it is an empty string
The command used to upgrade is:
choco upgrade all -y --notsilent
I use the package sandboxie as an example. The log says:
[INFO ] - Download of SandboxieInstall64-512.exe (5.23 MB) completed. [INFO ] - [DEBUG] - No virus checking built into FOSS Chocolatey. Check out Pro or Business if you need this. https://chocolatey.org/compare [DEBUG] - Checking that 'C:\Users\user\AppData\Local\Temp\chocolatey\sandboxie.install\5.12\SandboxieInstall64-512.exe' is the size we expect it to be. [DEBUG] - Verifying package provided checksum of 'd3b0e9dbda7a503103f5398e2b84694b24752d80' for 'C:\Users\user\AppData\Local\Temp\chocolatey\sandboxie.install\5.12\SandboxieInstall64-512.exe'. [DEBUG] - Running 'Get-ChecksumValid' with file:'C:\Users\user\AppData\Local\Temp\chocolatey\sandboxie.install\5.12\SandboxieInstall64-512.exe', checksum: 'd3b0e9dbda7a503103f5398e2b84694b24752d80', checksumType: 'sha1' [DEBUG] - checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' [DEBUG] - Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="d3b0e9dbda7a503103f5398e2b84694b24752d80" -t="sha1" -f="C:\Users\user\AppData\Local\Temp\chocolatey\sandboxie.install\5.12\SandboxieInstall64-512.exe"] [DEBUG] - Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="d3b0e9dbda7a503103f5398e2b84694b24752d80" -t="sha1" -f="C:\Users\user\AppData\Local\Temp\chocolatey\sandboxie.install\5.12\SandboxieInstall64-512.exe"] exited with '0'. [DEBUG] - Running 'Install-ChocolateyInstallPackage' for sandboxie.install with file:'C:\Users\user\AppData\Local\Temp\chocolatey\sandboxie.install\5.12\SandboxieInstall64-512.exe', args: '/S /upgrade', fileType: 'exe', validExitCodes: '0', useOnlyPackageSilentArguments: 'False' [INFO ] - Installing sandboxie.install... [INFO ] - [ERROR] - ERROR: Cannot bind argument to parameter 'statements' because it is an empty string. [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\sandboxie.install\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'. [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a'] [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116' [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\sandboxie.install'
The text was updated successfully, but these errors were encountered: