Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Uninstall Error: Get-ChildItem : Cannot find path 'C:\ProgramData\chocolatey\lib\Database_Client #576

Open
ghost opened this issue Sep 17, 2014 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 17, 2014

This path does exist:
C:\ProgramData\chocolatey\lib\Database_Client_SQLMgmtStudio_2012_64bit.0.5
but it looks like its trying to find this:
C:\ProgramData\chocolatey\lib\Database_Client_SQLMgmtStudio_2012_64bit.
Cutting off the version number.

Here is the log:
C:\Users\Administrator>choco uninstall Database_Client_SQLMgmntStudio_2012_64bit

Chocolatey (v0.9.8.27) is uninstalling Database_Client_SQLMgmntStudio_2012_64bit
...
Uninstalling from folder C:\ProgramData\chocolatey\lib\Database_Client_SQLMgmntS
tudio_2012_64bit.
Get-ChildItem : Cannot find path 'C:\ProgramData\chocolatey\lib\Database_Client
_SQLMgmntStudio_2012_64bit.' because it does not exist.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Get-ChocolateyBins.ps1
:17 char:29

  •   $files = get-childitem <<<<  $packageFolder -include *.exe -recurse
    
    • CategoryInfo : ObjectNotFound: (C:\ProgramData...dio_2012_64bi
      t.:String) [Get-ChildItem], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCh
      ildItemCommand

Get-ChildItem : Cannot find path 'C:\ProgramData\chocolatey\lib\Database_Client
_SQLMgmntStudio_2012_64bit.' because it does not exist.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Run-ChocolateyPS1.ps1:
22 char:25

  • $ps1 = Get-ChildItem <<<<   $packageFolder -recurse | ?{$_.name -match $a
    
    ctionFile} | sort name -Descending | select -First 1
    • CategoryInfo : ObjectNotFound: (C:\ProgramData...dio_2012_64bi
      t.:String) [Get-ChildItem], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCh
      ildItemCommand

Get-ChildItem : Cannot find path 'C:\ProgramData\chocolatey\lib\Database_Client
_SQLMgmntStudio_2012_64bit.' because it does not exist.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Run-ChocolateyPS1.ps1:
23 char:32

  • $installps1 = Get-ChildItem <<<<   $packageFolder -recurse | ?{$_.name -m
    
    atch 'chocolateyinstall.ps1'} | sort name -Descending | select -First 1
    • CategoryInfo : ObjectNotFound: (C:\ProgramData...dio_2012_64bi
      t.:String) [Get-ChildItem], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCh
      ildItemCommand

Remove-Item : Cannot find path 'C:\ProgramData\chocolatey\lib\Database_Client_S
QLMgmntStudio_2012_64bit.' because it does not exist.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Chocolatey-Uninstall.p
s1:33 char:18

  •   Remove-Item <<<<  -Recurse -Force $packageFolder
    
    • CategoryInfo : ObjectNotFound: (C:\ProgramData...dio_2012_64bi
      t.:String) [Remove-Item], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.Remov
      eItemCommand
@ferventcoder
Copy link
Contributor

Need a debug log.

Call with -debug

@ghost
Copy link
Author

ghost commented Sep 17, 2014

Debug Log:
C:\Users\Administrator>choco uninstall Database_Client_SQLMgmntStudio_2012_64bit
-debug
DEBUG: Running 'Append-InstallLog' with chocoInstallLog:''
DEBUG: Arguments: $command = 'uninstall'|$force=False
|$prerelease=False|$packageNames='Database_Client_SQLMgmntStudio_2012_64bit'
|$source=''
|$version=''|$allVersions=False
|$overrideArguments=False|$InstallArguments=''
|$localonly=False|$verbosity=False|$debug=True|$quiet=False
|$name=''|$ignoreDependencies=False|$forceX86=False
|$packageParameters=''
|PowerShellVersion=2.0|OSVersion=6.1.7601.65536
DEBUG: Running 'Chocolatey-Uninstall' for
Database_Client_SQLMgmntStudio_2012_64bit with version:'', installerArguments:
''
Chocolatey (v0.9.8.27) is uninstalling Database_Client_SQLMgmntStudio_2012_64bit
...
DEBUG: Running 'Chocolatey-Version' for
Database_Client_SQLMgmntStudio_2012_64bit with source:''.
DEBUG: Getting local packages based on all or passed in package name
DEBUG: Running 'Chocolatey-List' with selector:
'Database_Client_SQLMgmntStudio_2012_64bit',
source:'C:\ProgramData\chocolatey\lib'
DEBUG: Showing prerelease versions of packages
DEBUG: Executing command
["C:\ProgramData\chocolatey\chocolateyinstall\nuget.exe" list
"Database_Client_SQLMgmntStudio_2012_64bit" -Prerelease -NonInteractive -Source
"C:\ProgramData\chocolatey\lib"]
DEBUG: Command ["C:\ProgramData\chocolatey\chocolateyinstall\nuget.exe" list
"Database_Client_SQLMgmntStudio_2012_64bit" -Prerelease -NonInteractive -Source
"C:\ProgramData\chocolatey\lib"] exited with '0'.
DEBUG: Getting Database_Client_SQLMgmntStudio_2012_64bit from returned local
list
DEBUG: Looking for Database_Client_SQLMgmntStudio_2012_64bit.
Uninstalling from folder C:\ProgramData\chocolatey\lib\Database_Client_SQLMgmntS
tudio_2012_64bit.
DEBUG: Running 'Get-ChocolateyBins' for
C:\ProgramData\chocolatey\lib\Database_Client_SQLMgmntStudio_2012_64bit.
DEBUG: __ Executable Links (*.exe) __
DEBUG: Looking for executables in folder:
C:\ProgramData\chocolatey\lib\Database_Client_SQLMgmntStudio_2012_64bit.
Adding batch files for any executables found to a location on PATH. In other
words the executable will be available from ANY command line/powershell prompt.
Get-ChildItem : Cannot find path 'C:\ProgramData\chocolatey\lib\Database_Client
_SQLMgmntStudio_2012_64bit.' because it does not exist.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Get-ChocolateyBins.ps1
:17 char:29

  •   $files = get-childitem <<<<  $packageFolder -include *.exe -recurse
    
    • CategoryInfo : ObjectNotFound: (C:\ProgramData...dio_2012_64bi
      t.:String) [Get-ChildItem], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCh
      ildItemCommand

DEBUG: Found '' for batch redirect
DEBUG: There are no executables (that are not ignored) in the package.
DEBUG: Running 'Run-ChocolateyPS1' for
Database_Client_SQLMgmntStudio_2012_64bit with
packageFolder:'C:\ProgramData\chocolatey\lib\Database_Client_SQLMgmntStudio_201
2_64bit.', action: 'uninstall'
DEBUG: __ PowerShell uninstall (chocolateyuninstall.ps1) __
DEBUG: Looking for chocolateyuninstall.ps1 in folder
'C:\ProgramData\chocolatey\lib\Database_Client_SQLMgmntStudio_2012_64bit.'. If
chocolateyuninstall.ps1 is found, it will be run.
Get-ChildItem : Cannot find path 'C:\ProgramData\chocolatey\lib\Database_Client
_SQLMgmntStudio_2012_64bit.' because it does not exist.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Run-ChocolateyPS1.ps1:
22 char:25

  • $ps1 = Get-ChildItem <<<<   $packageFolder -recurse | ?{$_.name -match $a
    
    ctionFile} | sort name -Descending | select -First 1
    • CategoryInfo : ObjectNotFound: (C:\ProgramData...dio_2012_64bi
      t.:String) [Get-ChildItem], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCh
      ildItemCommand

Get-ChildItem : Cannot find path 'C:\ProgramData\chocolatey\lib\Database_Client
_SQLMgmntStudio_2012_64bit.' because it does not exist.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Run-ChocolateyPS1.ps1:
23 char:32

  • $installps1 = Get-ChildItem <<<<   $packageFolder -recurse | ?{$_.name -m
    
    atch 'chocolateyinstall.ps1'} | sort name -Descending | select -First 1
    • CategoryInfo : ObjectNotFound: (C:\ProgramData...dio_2012_64bi
      t.:String) [Get-ChildItem], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCh
      ildItemCommand

DEBUG: Action file is ''
Remove-Item : Cannot find path 'C:\ProgramData\chocolatey\lib\Database_Client_S
QLMgmntStudio_2012_64bit.' because it does not exist.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Chocolatey-Uninstall.p
s1:33 char:18

  •   Remove-Item <<<<  -Recurse -Force $packageFolder
    
    • CategoryInfo : ObjectNotFound: (C:\ProgramData...dio_2012_64bi
      t.:String) [Remove-Item], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.Remov
      eItemCommand

@ferventcoder
Copy link
Contributor

Uninstall has .... ...issues. :/ The order of execution in the POSH chocolatey could be part of the issue...

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

No branches or pull requests

1 participant