Skip to content

Instantly share code, notes, and snippets.

@TheBigBear
Created February 8, 2015 19:34
Show Gist options
  • Save TheBigBear/223069ea1e4394ea962b to your computer and use it in GitHub Desktop.
Save TheBigBear/223069ea1e4394ea962b to your computer and use it in GitHub Desktop.
why does it skip the auto-uninstaller when the auto-uninstaller feature is on?
C:\temp\fakepackage> choco feature
Chocolatey v0.9.9.0
checksumFiles - [Enabled]
autoUninstaller - [Enabled]
allowInsecureConfirmation - [Disabled]
C:\temp\fakepackage> choco install windirstat
Chocolatey v0.9.9.0
Installing the following packages:
windirstat
By installing you accept licenses for the packages.
windirstat v1.1.2.20140225
Found 'chocolateyInstall.ps1':
$packageName = 'windirstat'
$fileType = 'exe'
$url = 'http://prdownloads.sourceforge.net/windirstat/windirstat1_1_2_setup.exe'
$silentArgs = '/S'
Install-ChocolateyPackage $packageName $fileType "$silentArgs" "$url"
Do you want to run the script?
1) yes
2) no [Default - Press Enter]
3) skip
1
Installing windirstat...
windirstat has been installed.
windirstat has been installed successfully.
Chocolatey installed 1/1 package(s). 0 package(s) failed.
See the log for details.
C:\temp\fakepackage> choco uninstall windirstat
Chocolatey v0.9.9.0
Uninstalling the following packages:
windirstat
Which version of windirstat would you like to uninstall?
1) None [Default - Press Enter]
2) 1.1.2.20140225
2
You selected windirstat v1.1.2.20140225
windirstat v1.1.2.20140225
Skipping auto uninstaller - No registry snapshot.
windirstat has been successfully uninstalled.
Chocolatey uninstalled 1/1 packages. 0 packages failed.
See the log for details.
C:\temp\fakepackage> choco feature
Chocolatey v0.9.9.0
checksumFiles - [Enabled]
autoUninstaller - [Enabled]
allowInsecureConfirmation - [Disabled]
C:\temp\fakepackage>
Copy link

ghost commented Apr 3, 2015

The same problem.
I can't uninstall any package now, even though I have turned autoUinstaller on already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment