chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.34k stars 903 forks source link

--skip-powershell is not doing enough skipping #807

Closed botmtl closed 8 years ago

botmtl commented 8 years ago

What You Are Seeing?

an empty calibre folder

What is Expected?

a functionning calibre that isnt tied to choco anymore

How Did You Get This To Happen? (Steps to Reproduce)

choco uninstall calibre --skip-powershell --verbose

Output Log

choco -v 0.9.10-beta1-385-g8127955 2016-06-17 03:01:44,805 [DEBUG] - Command line: `

"C:\ProgramData\chocolatey\choco.exe" uninstall calibre --skip-powershell --verbose`

2016-06-17 03:01:44,805 [DEBUG] - Received arguments: uninstall calibre --skip-powershell --verbose 2016-06-17 03:01:44,840 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage. 2016-06-17 03:01:44,843 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers... 2016-06-17 03:01:44,845 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed... 2016-06-17 03:01:44,900 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type 2016-06-17 03:01:44,901 [DEBUG] - NOTE: Hiding sensitive configuration data! Please double and triple check to be sure no sensitive data is shown, especially if copying output to a gist for review. 2016-06-17 03:01:44,906 [DEBUG] - Configuration: CommandName='uninstall'| CacheLocation='C:\Users\glachance\AppData\Local\Temp\chocolatey'| ContainsLegacyPackageInstalls='True'| CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='45'| Sources='https://chocolatey.org/api/v2/'|SourceType='normal'| Debug='False'|Verbose='True'|Force='False'|Noop='False'| HelpRequested='False'|RegularOutput='True'|QuietOutput='False'| PromptForConfirmation='False'|AcceptLicense='False'| AllowUnofficialBuild='False'|Input='calibre'|AllVersions='False'| SkipPackageInstallProvider='True'|PackageNames='calibre'| Prerelease='False'|ForceX86='False'|OverrideArguments='False'| NotSilent='False'|IgnoreDependencies='False'| AllowMultipleVersions='False'|AllowDowngrade='False'| ForceDependencies='False'|Information.PlatformType='Windows'| Information.PlatformVersion='10.0.14342.0'| Information.PlatformName='Windows'| Information.ChocolateyVersion='0.9.10.0'| Information.ChocolateyProductVersion='0.9.10-beta1-385-g8127955'| Information.FullName='choco, Version=0.9.10.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64Bit='True'|Information.IsInteractive='True'| Information.IsUserAdministrator='True'| Information.IsProcessElevated='True'| Information.IsLicensedVersion='False'|Features.AutoUninstaller='True'| Features.CheckSumFiles='True'|Features.FailOnAutoUninstaller='False'| Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'| Features.LogEnvironmentValues='False'|Features.VirusCheck='False'| Features.FailOnInvalidOrMissingLicense='False'| Features.IgnoreInvalidOptionsSwitches='False'| Features.UsePackageExitCodes='True'|ListCommand.LocalOnly='False'| ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'| ListCommand.Exact='False'|ListCommand.ByIdOnly='False'| ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'| ListCommand.ApprovedOnly='False'| ListCommand.DownloadCacheAvailable='False'| ListCommand.NotBroken='False'|UpgradeCommand.FailOnUnfound='False'| UpgradeCommand.FailOnNotInstalled='False'| UpgradeCommand.NotifyOnlyAvailableUpgrades='False'| NewCommand.AutomaticPackage='False'| NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'| SourceCommand.Priority='0'|FeatureCommand.Command='unknown'| ConfigCommand.Command='unknown'|PinCommand.Command='unknown'| 2016-06-17 03:01:44,909 [DEBUG] - Chocolatey:ChocolateyUninstallCommand - Normal Run Mode 2016-06-17 03:01:44,915 [INFO ] - Uninstalling the following packages: 2016-06-17 03:01:44,916 [INFO ] - calibre 2016-06-17 03:01:44,954 [DEBUG] - Running list with the following filter = '' 2016-06-17 03:01:44,954 [DEBUG] - --- Start of List --- 2016-06-17 03:01:45,097 [DEBUG] - 7zip.commandline 16.02 2016-06-17 03:01:45,100 [DEBUG] - 7zip.install 16.02 2016-06-17 03:01:45,100 [DEBUG] - ActivePerl 5.22.0.2200 2016-06-17 03:01:45,100 [DEBUG] - adwcleaner 5.119 2016-06-17 03:01:45,100 [DEBUG] - alldup 3.4.24.20131012 2016-06-17 03:01:45,100 [DEBUG] - ant 1.9.7 2016-06-17 03:01:45,100 [DEBUG] - autohotkey.portable 1.1.24.00 2016-06-17 03:01:45,101 [DEBUG] - autoit 3.3.14.2 2016-06-17 03:01:45,101 [DEBUG] - avidemux 2.6.12 2016-06-17 03:01:45,101 [DEBUG] - bulkrenameutility.install 3.0.0.1 2016-06-17 03:01:45,101 [DEBUG] - calibre 2.58.0 2016-06-17 03:01:45,101 [DEBUG] - ccleaner 5.18.5607 2016-06-17 03:01:45,102 [DEBUG] - chocolatey 0.9.10-beta-20160531 2016-06-17 03:01:45,102 [DEBUG] - chocolatey-fosshub.extension 0.1.0 2016-06-17 03:01:45,102 [DEBUG] - cloneapp 1.16.737 2016-06-17 03:01:45,102 [DEBUG] - cmake 3.4.3 2016-06-17 03:01:45,102 [DEBUG] - cmake.install 3.4.3 2016-06-17 03:01:45,103 [DEBUG] - comicrack 0.9.178 2016-06-17 03:01:45,103 [DEBUG] - curl 7.28.1 2016-06-17 03:01:45,103 [DEBUG] - databasenet 18.6 2016-06-17 03:01:45,103 [DEBUG] - docfetcher 1.1.17 2016-06-17 03:01:45,103 [DEBUG] - DotNet4.5 4.5.20120822 2016-06-17 03:01:45,103 [DEBUG] - dotPeek 2016.1.2.0 2016-06-17 03:01:45,104 [DEBUG] - dropit.install 8.2 2016-06-17 03:01:45,104 [DEBUG] - electron 1.2.2 2016-06-17 03:01:45,104 [DEBUG] - Evernote 5.9.9.9915 2016-06-17 03:01:45,104 [DEBUG] - exiftool 10.19 2016-06-17 03:01:45,104 [DEBUG] - ffmpeg 3.0.1 2016-06-17 03:01:45,104 [DEBUG] - Ghostscript.app 9.19 2016-06-17 03:01:45,104 [DEBUG] - git 2.9.0 2016-06-17 03:01:45,104 [DEBUG] - git.install 2.9.0 2016-06-17 03:01:45,105 [DEBUG] - Git-Credential-Manager-for-Windows 1.2.2 2016-06-17 03:01:45,105 [DEBUG] - gitkraken 1.3.0 2016-06-17 03:01:45,105 [DEBUG] - glaryutilities-free 5.48 2016-06-17 03:01:45,105 [DEBUG] - greenshot 1.2.8.12 2016-06-17 03:01:45,105 [DEBUG] - hg 3.8.3 2016-06-17 03:01:45,105 [DEBUG] - honeyview.install 5.16 2016-06-17 03:01:45,105 [DEBUG] - imagemagick.app 7.0.1.5 2016-06-17 03:01:45,105 [DEBUG] - imagemagick.tool 7.0.1.5 2016-06-17 03:01:45,106 [DEBUG] - jdk7 7.0.79.2 2016-06-17 03:01:45,106 [DEBUG] - jdk8 8.0.92.1 2016-06-17 03:01:45,106 [DEBUG] - jre8 8.0.91 2016-06-17 03:01:45,106 [DEBUG] - lessmsi 1.4 2016-06-17 03:01:45,106 [DEBUG] - lockhunter 3.1.1 2016-06-17 03:01:45,106 [DEBUG] - microsoft-build-tools 14.0.23107.10 2016-06-17 03:01:45,106 [DEBUG] - mkvtoolnix 9.2.0 2016-06-17 03:01:45,106 [DEBUG] - mp3tag 2.77.0.20160428 2016-06-17 03:01:45,107 [DEBUG] - nirlauncher 1.19.90 2016-06-17 03:01:45,107 [DEBUG] - nodejs 6.2.1 2016-06-17 03:01:45,107 [DEBUG] - nodejs.install 6.2.1 2016-06-17 03:01:45,107 [DEBUG] - notepadplusplus.install 6.9.2 2016-06-17 03:01:45,107 [DEBUG] - NuGet.CommandLine 3.4.3 2016-06-17 03:01:45,107 [DEBUG] - OptiPNG 0.7.5.20141004 2016-06-17 03:01:45,107 [DEBUG] - paint.net 4.0.6 2016-06-17 03:01:45,107 [DEBUG] - pdfedit 2014.0526.1531 2016-06-17 03:01:45,108 [DEBUG] - pdf-ifilter-64 11.0.01 2016-06-17 03:01:45,108 [DEBUG] - plexmediaserver 0.9.1213.1464 2016-06-17 03:01:45,108 [DEBUG] - processhacker 2.39 2016-06-17 03:01:45,108 [DEBUG] - processhacker.install 2.39 2016-06-17 03:01:45,108 [DEBUG] - qbittorrent 3.3.4 2016-06-17 03:01:45,108 [DEBUG] - qpdf 6.0 2016-06-17 03:01:45,108 [DEBUG] - rapidee 9.0.930 2016-06-17 03:01:45,108 [DEBUG] - reshack 4.2.5 2016-06-17 03:01:45,108 [DEBUG] - ReSharperCpp 2016.1.2.0 2016-06-17 03:01:45,109 [DEBUG] - resharper-platform 105.0.20160523.144749 2016-06-17 03:01:45,109 [DEBUG] - ruby 2.3.0 2016-06-17 03:01:45,109 [DEBUG] - sandboxie.install 5.10 2016-06-17 03:01:45,109 [DEBUG] - sonarr 2.0.0.4146 2016-06-17 03:01:45,109 [DEBUG] - SourceCodePro 2.010.0 2016-06-17 03:01:45,109 [DEBUG] - spybot 2.4.40.20160327 2016-06-17 03:01:45,109 [DEBUG] - sumatrapdf.commandline 3.1.1 2016-06-17 03:01:45,110 [DEBUG] - sumatrapdf.install 3.1.1 2016-06-17 03:01:45,110 [DEBUG] - svn 1.8.15 2016-06-17 03:01:45,110 [DEBUG] - sysinternals 2016.04.28 2016-06-17 03:01:45,110 [DEBUG] - tortoisegit 2.1.0.20160326 2016-06-17 03:01:45,110 [DEBUG] - tortoisesvn 1.9.4 2016-06-17 03:01:45,110 [DEBUG] - vcpython27 0.1 2016-06-17 03:01:45,110 [DEBUG] - vcredist2005 8.1.0.20160118 2016-06-17 03:01:45,110 [DEBUG] - vcredist2010 10.0.40219.1 2016-06-17 03:01:45,110 [DEBUG] - webpi 5.0 2016-06-17 03:01:45,111 [DEBUG] - Wget 1.17.0.0 2016-06-17 03:01:45,111 [DEBUG] - win32-openssh 2016.05.30 2016-06-17 03:01:45,111 [DEBUG] - windowsrepair 3.9.1 2016-06-17 03:01:45,111 [DEBUG] - windows-sdk-10.1 10.1.10586.15 2016-06-17 03:01:45,111 [DEBUG] - winscp.install 5.7.7 2016-06-17 03:01:45,111 [DEBUG] - youtube-dl 2016.06.11.3 2016-06-17 03:01:45,111 [DEBUG] - --- End of List --- 2016-06-17 03:01:45,116 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\calibre". 2016-06-17 03:01:45,163 [DEBUG] - Backing up existing calibre prior to upgrade. 2016-06-17 03:01:45,164 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\calibre' to 'C:\ProgramData\chocolatey\lib-bkp\calibre' 2016-06-17 03:01:47,167 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\calibre". 2016-06-17 03:01:47,168 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\calibre\calibre.nupkg" to "C:\ProgramData\chocolatey\lib\calibre\calibre.nupkg". 2016-06-17 03:01:47,170 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\calibre\calibre.nuspec" to "C:\ProgramData\chocolatey\lib\calibre\calibre.nuspec". 2016-06-17 03:01:47,171 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\calibre\tools". 2016-06-17 03:01:47,171 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\calibre\tools\chocolateyInstall.ps1" to "C:\ProgramData\chocolatey\lib\calibre\tools\chocolateyInstall.ps1". 2016-06-17 03:01:47,172 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\calibre\tools\chocolateyUninstall.ps1" to "C:\ProgramData\chocolatey\lib\calibre\tools\chocolateyUninstall.ps1". 2016-06-17 03:01:48,676 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\calibre' 2016-06-17 03:01:48,677 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\calibre\calibre.nupkg' with checksum '16389F5055E945B4B44EED0B66EA4EAF' 2016-06-17 03:01:48,677 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\calibre\calibre.nuspec' with checksum '82B2CF9CFBFD3A0E9CFDF2CF617EFE24' 2016-06-17 03:01:48,678 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\calibre\tools\chocolateyInstall.ps1' with checksum 'EFF8E87B784A4A088D055CE7BEB7A904' 2016-06-17 03:01:48,678 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\calibre\tools\chocolateyUninstall.ps1' with checksum 'B53D6E1E96B8026983E9B7BED06AEB5B' 2016-06-17 03:01:48,841 [INFO ] - calibre v2.58.0 2016-06-17 03:01:48,859 [INFO ] - Running auto uninstaller... 2016-06-17 03:01:48,862 [DEBUG] - Sleeping for 2 seconds to allow Windows to finish cleaning up. 2016-06-17 03:01:50,867 [DEBUG] - Preparing uninstall key 'MsiExec.exe /I{03D76A6B-4B00-4CEA-835B-909D7462F32E}' 2016-06-17 03:01:50,985 [DEBUG] - Uninstaller path is 'MsiExec.exe' 2016-06-17 03:01:50,986 [DEBUG] - Installer type is 'MsiInstaller' 2016-06-17 03:01:50,986 [DEBUG] - Setting up uninstall logging directory at C:\Users\glachance\AppData\Local\Temp\chocolatey\calibre\2.58.0 2016-06-17 03:01:50,987 [DEBUG] - Args are ' /X{03D76A6B-4B00-4CEA-835B-909D7462F32E} /qn /norestart' 2016-06-17 03:01:50,989 [DEBUG] - Calling command ['"MsiExec.exe" /X{03D76A6B-4B00-4CEA-835B-909D7462F32E} /qn /norestart']
2016-06-17 03:01:58,823 [DEBUG] - Command ['"MsiExec.exe" /X{03D76A6B-4B00-4CEA-835B-909D7462F32E} /qn /norestart'] exited with '0' 2016-06-17 03:01:58,824 [INFO ] - Auto uninstaller has successfully uninstalled calibre or detected previous uninstall. 2016-06-17 03:01:58,827 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a'] 2016-06-17 03:01:58,848 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116' 2016-06-17 03:01:58,850 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey.chocolatey\calibre.2.58.0". 2016-06-17 03:01:58,851 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\calibre". 2016-06-17 03:01:58,883 [INFO ] - calibre has been successfully uninstalled. 2016-06-17 03:01:58,887 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\calibre\calibre.nupkg". 2016-06-17 03:01:58,891 [DEBUG] - Attempting to delete directory "C:\Users\glachance\AppData\Local\Temp\chocolatey\calibre\2.58.0". 2016-06-17 03:01:58,902 [INFO ] - Environment Vars (like PATH) have changed. Close/reopen your shell to see the changes (or in powershell/cmd.exe just type refreshenv). 2016-06-17 03:01:58,904 [DEBUG] - Logging of values is not turned on by default because it could potentially expose sensitive data. If you understand the risk, please see choco feature -h for information to turn it on. 2016-06-17 03:01:58,904 [DEBUG] - The following values have been added/changed (may contain sensitive data): 2016-06-17 03:01:58,904 [DEBUG] - * Path='[REDACTED]' (Machine) 2016-06-17 03:01:58,908 [WARN ] - Chocolatey uninstalled 1/1 packages. 0 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 2016-06-17 03:01:58,910 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... 2016-06-17 03:01:58,914 [DEBUG] - Exiting with 0

Result:calibre uninstalled :(

ferventcoder commented 8 years ago

Note: Currently I don't see a bug here. You asked it to skip the powershell run, but not auto uninstaller. Upgrade to 0.9.10 and add --skip-autouninstaller to your arguments.

botmtl commented 8 years ago

I had never seen that switch before! weird. What's weirder is that I'm sure I used --skip-powershell to avoid uninstalling a few times and it worked. Anyway, thanks for the tip, sorry for the non-bug.

ferventcoder commented 8 years ago

By the way - 0.9.10 has PowerShell tab completion. 👍