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

Closed
SecTec opened this Issue Jun 21, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@SecTec

SecTec commented Jun 21, 2016

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'

@ferventcoder

This comment has been minimized.

Show comment
Hide comment
@ferventcoder

ferventcoder Jun 21, 2016

Member

Chocolatey - let's update this to say NotSilent is broken. As a workaround
leave off notsilent for now.

On Tuesday, June 21, 2016, SecTec notifications@github.com wrote:

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'


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#819, or mute the thread
https://github.com/notifications/unsubscribe/AAD4DmCr5lOSGWfNEHuba4L-F1RK3H1hks5qN_BZgaJpZM4I6xpL
.

Rob
"Be passionate in all you do"

http://codebetter.com/robreynolds
http://ferventcoder.com
https://twitter.com/ferventcoder

Member

ferventcoder commented Jun 21, 2016

Chocolatey - let's update this to say NotSilent is broken. As a workaround
leave off notsilent for now.

On Tuesday, June 21, 2016, SecTec notifications@github.com wrote:

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'


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#819, or mute the thread
https://github.com/notifications/unsubscribe/AAD4DmCr5lOSGWfNEHuba4L-F1RK3H1hks5qN_BZgaJpZM4I6xpL
.

Rob
"Be passionate in all you do"

http://codebetter.com/robreynolds
http://ferventcoder.com
https://twitter.com/ferventcoder

@ferventcoder ferventcoder added this to the 0.9.10.3 milestone Jun 21, 2016

@ferventcoder ferventcoder changed the title from Cannot bind argument to parameter statements because it is an empty string to NotSilent fails with - Cannot bind argument to parameter statements because it is an empty string Jun 21, 2016

@ferventcoder

This comment has been minimized.

Show comment
Hide comment
@ferventcoder

ferventcoder Jun 21, 2016

Member

Another fallout from #697.

Member

ferventcoder commented Jun 21, 2016

Another fallout from #697.

@ferventcoder ferventcoder self-assigned this Jun 22, 2016

@ferventcoder ferventcoder added 3 - Done and removed 0 - Backlog labels Jun 22, 2016

@ferventcoder

This comment has been minimized.

Show comment
Hide comment
@ferventcoder

ferventcoder Jun 22, 2016

Member

This will be out in 0.9.10.3

Member

ferventcoder commented Jun 22, 2016

This will be out in 0.9.10.3

ferventcoder added a commit that referenced this issue Jun 23, 2016

(GH-819) Fix - NotSilent install failure binding
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.

ferventcoder added a commit that referenced this issue Jun 23, 2016

Merge branch 'stable'
* 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

@ferventcoder ferventcoder changed the title from NotSilent fails with - Cannot bind argument to parameter statements because it is an empty string to NotSilent fails with "Cannot bind argument to parameter statements because it is an empty string" Jun 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment