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

Chocolatey GUI v0.16.0 uninstall errors (but uninstalls) #563

Closed
bcurran3 opened this issue Feb 17, 2018 · 2 comments
Closed

Chocolatey GUI v0.16.0 uninstall errors (but uninstalls) #563

bcurran3 opened this issue Feb 17, 2018 · 2 comments
Assignees
Labels
Bug Issues where something has happened which was not expected or intended
Milestone

Comments

@bcurran3
Copy link

I think most the "confusion" stems from:
"$packageName = "Chocolatey GUI";"
instead of:
$packageName = "chocolateygui";
in chocolateyUninstall.ps1

I haven't looked into the registry key error but want to point it out as well.

Microsoft Windows [Version 10.0.16299.248]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>choco uninstall chocolateygui
Chocolatey v0.10.8 Professional
Uninstalling the following packages:
chocolateygui

chocolateygui v0.16.0
Property ProductName does not exist at path HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\99E80CA9B0328e74791254777B1F42AE.
0
WARNING: Write-ChocolateySuccess is deprecated and will be removed in v2. If you are the maintainer, please remove it from your package file.
Only an exit code of non-zero will fail the package by default. Set
--failonstderr if you want error messages to also fail a script. See
choco -h for details.
Running auto uninstaller...
Skipping auto uninstaller - 'Chocolatey GUI' appears to have been uninstalled already by other means.
chocolateygui has been successfully uninstalled.
chocolateygui not uninstalled. An error occurred during uninstall:
Unable to find package 'ChocolateyGUI'.

Chocolatey uninstalled 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • chocolateygui (exited 1) - chocolateygui not uninstalled. An error occurred during uninstall:
    Unable to find package 'ChocolateyGUI'.

If a package uninstall is failing and/or you've already uninstalled the
software outside of Chocolatey, you can attempt to run the command
with -n to skip running a chocolateyUninstall script, additionally
adding --skip-autouninstaller to skip an attempt to automatically
remove system-installed software. This will only remove the packaging
files and not things like software installed to Programs and Features.

If a package is failing because it is a dependency of another package
or packages, then you may first need to consider if it needs removed
as it is typically installed as a dependency for a reason. If you
decide that you still want to remove it, head into
$env:ChocolateyInstall\lib and find the package folder you want
removed. Then delete the folder for the package. This option should
only be used as a last resort.

C:\WINDOWS\system32>

@gep13 gep13 added this to the 0.17.0 milestone Feb 19, 2018
@gep13 gep13 added the Bug Issues where something has happened which was not expected or intended label Feb 19, 2018
@gep13 gep13 self-assigned this Feb 19, 2018
@gep13 gep13 changed the title ChocolateyGUi v0.16 uninstall errors (but uninstalls) Chocolatey GUI v0.16.0 uninstall errors (but uninstalls) Feb 19, 2018
gep13 added a commit that referenced this issue Apr 18, 2019
Let's leave it to the auto-uninstaller to remove things.
@gep13
Copy link
Member

gep13 commented Apr 18, 2019

@bcurran3 thanks for raising this. This has been addressed and will ship in the next release.

@gep13 gep13 closed this as completed Apr 18, 2019
@choco-bot
Copy link

🎉 This issue has been resolved in version 0.17.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues where something has happened which was not expected or intended
Projects
None yet
Development

No branches or pull requests

3 participants