Closed ggarra13 closed 6 years ago
The bug is the following in Uninstall-ChocolateyZipPackage:
$zipContentFile=(join-path $packagelibPath $zipFileName) + "Install.txt"
if(-Not (Test-Path -Path $zipFileContentPath)) { $zipContentFile=(Join-Path $packagelibPath -ChildPath $zipFileName) + ".txt" }
$zipFileContentPath is unknown and empty. It should be $zipContentFile from above.
I am also facing the same error while uninstalling the Zip package which is simply unpacked in C:\ directory and just a desktop link. Following is my uninstallation PS Script.
$process = Get-Process sts -ErrorAction SilentlyContinue if ($process) { Stop-Process $process Write-Output "Process stopped, waiting for 5 sec." Start-Sleep -s 5 }
$packageName = 'sts' UnInstall-ChocolateyZipPackage $packageName 'sts' Uninstall-DesktopLinkAndPinnedTaskBarItem "sts"
ERROR: Cannot bind argument to parameter 'Path' because it is null. sts uninstall not successful. Error while running 'C:\ProgramData\chocolatey\lib\sts\tools\chocolateyuninstall.ps1'. See log for details. sts not uninstalled. An error occurred during uninstall: sts uninstall not successful.
Chocolatey uninstalled 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
What You Are Seeing?
Uninstall-ChocolateyZipPackage is failing with:
ERROR: Cannot bind argument to parameter 'Path' because it is null.
What is Expected?
The command should work as documented.
How Did You Get This To Happen? (Steps to Reproduce)
I upgraded to chocolatey 0.10.10.
Output Log
This is the same bug as #1546