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

cuninst <packageName> command doesn't delete exe wrappers in Chocolatey bin folder #400

Closed
lexxmark opened this issue Jan 4, 2014 · 8 comments

Comments

@lexxmark
Copy link

lexxmark commented Jan 4, 2014

I added winflexbison package recently and noticed an issue with package uninstalling.
When I invoked "cuninst winflexbison" command the shell wrappers for executable files were not deleted.

How to reproduce:

  1. Install package "cinst winflexbison"
  2. There is new folder in C:\Chocolatey\lib\ and shell and bat wrappers in C:\Chocolatey\bin\
  3. Uninstall package "cuninst winflexbison"
  4. The winflexbison folder in C:\Chocolatey\lib\ is deleted as expected. But wrappers in C:\Chocolatey\bin\ are still present.
@ferventcoder
Copy link
Contributor

Yes, check out #6 I believe. The uninstall is not done, its still very
naive.

On Saturday, January 4, 2014, lexxmark wrote:

I added winflexbison package recently and noticed an issue with package
uninstalling.
When I invoked "cuninst winflexbison" command the shell wrappers for
executable files were not deleted.

How to reproduce:

  1. Install package "cinst winflexbison"
  2. There is new folder in C:\Chocolatey\lib\ and shell and bat wrappers in
    C:\Chocolatey\bin\
  3. Uninstall package "cuninst winflexbison"
  4. The winflexbison folder in C:\Chocolatey\lib\ is deleted as expected.
    But wrappers in C:\Chocolatey\bin\ are still present.


Reply to this email directly or view it on GitHubhttps://github.com//issues/400
.

Rob
"Be passionate in all you do"

http://devlicio.us/blogs/rob_reynolds
http://ferventcoder.com
http://twitter.com/ferventcoder

@ferventcoder
Copy link
Contributor

It's #6

@RichiCoder1
Copy link
Contributor

Seconded.

@qzo
Copy link

qzo commented Jun 24, 2014

The uninstall behavior really is quite strange. As mentioned, the uninstaller should remove the wrappers since it has all information it needs. But what really surprised me is that, for some reason, the uninstall procedure recreates all of the wrappers (the operation looks exactly the same as when installing the application). But at least I can see all their names and can remove them manually.

@ferventcoder
Copy link
Contributor

Note my comment about it being naive (aka not fully implemented)

@jberezanski
Copy link
Contributor

The wrapper uninstall issues are already fixed in the not-yet-released 0.9.8.24 (GH-418, GH-446, GH-480).

@rismoney
Copy link
Contributor

i added the original uninstall capability as a naive implementation that requires chocolateyuninstall.ps1. many pkgs dont have that capability. its very ymmv at this point but its going to get a lot better as indicated above so stay tuned

@ferventcoder
Copy link
Contributor

This should be fixed as part of 0.9.8.24

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

No branches or pull requests

6 participants