Skip to content
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

Uninstall-ChocolateyZipPackage fails with "Cannot bind argument" error #888

Closed
tdunnington opened this issue Aug 2, 2016 · 4 comments
Closed

Comments

@tdunnington
Copy link

What You Are Seeing?

Uninstall using Uninstall-ChocolateyZipPackage fails with "ERROR: Cannot bind argument to parameter 'Path' because it is an empty string."

I've found that I can make the uninstall script work properly if I edit the manifest file created by the Install-ChocolateyZipPackage process. The manifest file is C:\ProgramData\chocolatey\lib\ivy\apache-ivy-2.4.0.zip.txt (see this gist for example) and contains two blank lines at the end of the file (as shown in the example). If I edit the file and remove the blank lines, the uninstall will work.

The command is being called from a very simple uninstall script from the ivy package (which I maintain), and is included in this gist

What is Expected?

Either the install zip function call needs to not create the blank lines shown in the manifest, or the uninstall needs to ignore them (or both).

How Did You Get This To Happen? (Steps to Reproduce)

choco install ivy
choco uninstall ivy

Output Log

Log can be viewed in this gist file

@ferventcoder
Copy link
Member

I believe this is a duplicate of #871

@ferventcoder
Copy link
Member

Fixed with 5664ef3

@tdunnington
Copy link
Author

@ferventcoder my apologies, I see my mistake. By default issue searching looks for open issues only, so my search did not find #871. My bad!

@ferventcoder
Copy link
Member

No worries, that's why we triage! :)

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

No branches or pull requests

2 participants