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

There's no uninstall script in the 0.0.5 package #3

Closed
frankgeerlings opened this issue Nov 20, 2012 · 10 comments
Closed

There's no uninstall script in the 0.0.5 package #3

frankgeerlings opened this issue Nov 20, 2012 · 10 comments
Labels
Feature Issues that introduce new functionality to the project, instead of updating existing functionality
Milestone

Comments

@frankgeerlings
Copy link

C:\> chocolatey uninstall chocolateygui

gives

=====================================================
Chocolatey (0.9.8.19) is uninstalling chocolateygui from "C:\Chocolatey\lib".
=====================================================
You have the latest version of chocolateygui (0.0.5) based on: '-Source 
"http://chocolatey.org/api/v2/" -Source "https://go.microsoft.com/fwlink/
 ?LinkID=230477"' (if value is empty, using sources in nuget.config file).
 -------------------------
  PowerShell uninstall (chocolateyuninstall.ps1)
 -------------------------
This package has a chocolateyInstall.ps1 without a chocolateyUninstall.ps1.
You will need to manually reverse whatever steps the installer did. Please
ask the package maker to include a chocolateyUninstall.ps1 in the file to
really remove the package.
@chrissie1
Copy link
Contributor

I will have to ask Rob how to best go about this.

@ferventcoder
Copy link
Member

Whatever it is to remove an msi. I know it's something like msiexec /x AppGUID - v0.99 is our place to have some awesome support for uninstalls.

@chrissie1
Copy link
Contributor

ok, I can add that.

@chrissie1
Copy link
Contributor

I will wait for 0.99 to add this.

@gep13
Copy link
Member

gep13 commented Feb 18, 2013

Are you avoiding this for a reason? Should be reasonably simple to implement?!?

@chrissie1
Copy link
Contributor

You need to have the GUID that the setup creates. I would have to investigate if that changes every time you have a new version of the installer.

@gep13
Copy link
Member

gep13 commented Feb 18, 2013

Ah, good point! Currently we have ProductCode="*", which I think generates a new GUID each time, and currently the upgrade code remains the same. Will definitely need some investigation :-(

@gep13
Copy link
Member

gep13 commented Feb 21, 2013

Ok, I "think" I have an uninstall script that will work :-) It works when I run it manually, however, running cuninst chocolateygui, the chocolateyUninstall.ps1 file never seems to get called. I am going to ask a question in the forums to see if there is a known issue. Will post back if/when I have more info.

Gary

gep13 added a commit that referenced this issue Feb 22, 2013
Added the necessary PowerShell code to look up the LocalPackage source
of the installed application, and then uninstall it.
@gep13
Copy link
Member

gep13 commented Feb 22, 2013

Think I have done what is needed here, but it would be good if it could be tested. Let me know what you think.

@gep13
Copy link
Member

gep13 commented Feb 24, 2013

Ok, looks like I messed up. Was hoping that this was going to be in the 0.11.0 release, but it isn't. Will have to wait for the next one.

@gep13 gep13 closed this as completed Feb 24, 2013
@gep13 gep13 modified the milestones: 0.11.2, 0.12 Feb 18, 2014
@gep13 gep13 modified the milestones: 0.11, 0.11.2, 0.11.1 Mar 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Issues that introduce new functionality to the project, instead of updating existing functionality
Projects
None yet
Development

No branches or pull requests

4 participants