{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/choco/issues/1592","repository_url":"https://api.github.com/repos/chocolatey/choco","labels_url":"https://api.github.com/repos/chocolatey/choco/issues/1592/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/choco/issues/1592/comments","events_url":"https://api.github.com/repos/chocolatey/choco/issues/1592/events","html_url":"https://github.com/chocolatey/choco/issues/1592","id":330676127,"node_id":"MDU6SXNzdWUzMzA2NzYxMjc=","number":1592,"title":"Downloaded dependency packages are not removed from NuGet Cache","user":{"login":"buenyamin","id":10811719,"node_id":"MDQ6VXNlcjEwODExNzE5","avatar_url":"https://avatars0.githubusercontent.com/u/10811719?v=4","gravatar_id":"","url":"https://api.github.com/users/buenyamin","html_url":"https://github.com/buenyamin","followers_url":"https://api.github.com/users/buenyamin/followers","following_url":"https://api.github.com/users/buenyamin/following{/other_user}","gists_url":"https://api.github.com/users/buenyamin/gists{/gist_id}","starred_url":"https://api.github.com/users/buenyamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buenyamin/subscriptions","organizations_url":"https://api.github.com/users/buenyamin/orgs","repos_url":"https://api.github.com/users/buenyamin/repos","events_url":"https://api.github.com/users/buenyamin/events{/privacy}","received_events_url":"https://api.github.com/users/buenyamin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T14:16:24Z","updated_at":"2018-06-10T23:59:58Z","closed_at":null,"author_association":"NONE","body":"### What You Are Seeing?\r\nchoco is not cleaning up downloaded dependency packages at $env:USERPROFILE\\AppData\\Local\\NuGet\\Cache\r\n\r\nIn the logs you can see that the downloaded main package is attempted to delete:\r\nAttempting to delete file \"C:\\Users\\Administrator\\AppData\\Local\\NuGet\\Cache\\7zip-german.18.0.5.nupkg\".\r\n\r\nBut there's no entry for chocolatey-core.extension.1.3.3.nupkg\r\n\r\n### What is Expected?\r\nchoco should clean all packages up\r\n\r\n### How Did You Get This To Happen? (Steps to Reproduce)\r\nchoco install *packagename*\r\n\r\n### Output Log\r\n<details>\r\n<summary>Full Log Output</summary>\r\n\r\n<p>\r\n\r\n~~~sh\r\nPS C:\\Users\\Administrator> choco install 7zip-german -dv\r\nChocolatey v0.10.11\r\nChocolatey is running on Windows v 10.0.14393.0\r\nAttempting to delete file \"C:/ProgramData/chocolatey/choco.exe.old\".\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\choco.exe.old\".\r\nCommand line: \"C:\\ProgramData\\chocolatey\\choco.exe\" install 7zip-german -dv\r\nReceived arguments: install 7zip-german -dv\r\nRemovePendingPackagesTask is now ready and waiting for PreRunMessage.\r\nSending message 'PreRunMessage' out if there are subscribers...\r\n[Pending] Removing all pending packages that should not be considered installed...\r\nThe source 'https://chocolatey.companyname.de:443/chocolatey' evaluated to a 'normal' source type\r\n\r\nNOTE: Hiding sensitive configuration data! Please double and triple\r\n check to be sure no sensitive data is shown, especially if copying\r\n output to a gist for review.\r\nConfiguration: CommandName='install'|CacheLocation='c:\\temp\\choco'|\r\nContainsLegacyPackageInstalls='True'|\r\nCommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|\r\nSources='https://chocolatey.companyname.de:443/chocolatey'|\r\nSourceType='normal'|Debug='True'|Verbose='True'|Trace='False'|\r\nForce='False'|Noop='False'|HelpRequested='False'|\r\nUnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|\r\nPromptForConfirmation='True'|AcceptLicense='False'|\r\nAllowUnofficialBuild='False'|Input='7zip-german'|AllVersions='False'|\r\nSkipPackageInstallProvider='False'|PackageNames='7zip-german'|\r\nPrerelease='False'|ForceX86='False'|OverrideArguments='False'|\r\nNotSilent='False'|ApplyPackageParametersToDependencies='False'|\r\nApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|\r\nAllowMultipleVersions='False'|AllowDowngrade='False'|\r\nForceDependencies='False'|Information.PlatformType='Windows'|\r\nInformation.PlatformVersion='10.0.14393.0'|\r\nInformation.PlatformName='Windows Server 2016'|\r\nInformation.ChocolateyVersion='0.10.11.0'|\r\nInformation.ChocolateyProductVersion='0.10.11'|\r\nInformation.FullName='choco, Version=0.10.11.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|\r\n\r\nInformation.Is64BitOperatingSystem='True'|\r\nInformation.Is64BitProcess='True'|Information.IsInteractive='True'|\r\nInformation.UserName='Administrator'|\r\nInformation.UserDomainName='PLAYGROUND'|\r\nInformation.IsUserAdministrator='True'|\r\nInformation.IsUserSystemAccount='False'|\r\nInformation.IsUserRemoteDesktop='False'|\r\nInformation.IsUserRemote='True'|\r\nInformation.IsProcessElevated='True'|\r\nInformation.IsLicensedVersion='False'|Information.LicenseType='Foss'|\r\nFeatures.AutoUninstaller='True'|Features.ChecksumFiles='True'|\r\nFeatures.AllowEmptyChecksums='False'|\r\nFeatures.AllowEmptyChecksumsSecure='True'|\r\nFeatures.FailOnAutoUninstaller='False'|\r\nFeatures.FailOnStandardError='False'|Features.UsePowerShellHost='True'|\r\nFeatures.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|\r\nFeatures.VirusCheck='False'|\r\nFeatures.FailOnInvalidOrMissingLicense='False'|\r\nFeatures.IgnoreInvalidOptionsSwitches='True'|\r\nFeatures.UsePackageExitCodes='True'|\r\nFeatures.UseFipsCompliantChecksums='False'|\r\nFeatures.ShowNonElevatedWarnings='True'|\r\nFeatures.ShowDownloadProgress='True'|\r\nFeatures.StopOnFirstPackageFailure='False'|\r\nFeatures.UseRememberedArgumentsForUpgrades='False'|\r\nFeatures.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|\r\nFeatures.RemovePackageInformationOnUninstall='False'|\r\nFeatures.ScriptsCheckLastExitCode='False'|\r\nListCommand.LocalOnly='False'|\r\nListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|\r\nListCommand.PageSize='25'|ListCommand.Exact='False'|\r\nListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|\r\nListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|\r\nListCommand.ApprovedOnly='False'|\r\nListCommand.DownloadCacheAvailable='False'|\r\nListCommand.NotBroken='False'|\r\nListCommand.IncludeVersionOverrides='False'|\r\nUpgradeCommand.FailOnUnfound='False'|\r\nUpgradeCommand.FailOnNotInstalled='False'|\r\nUpgradeCommand.NotifyOnlyAvailableUpgrades='False'|\r\nUpgradeCommand.ExcludePrerelease='False'|\r\nNewCommand.AutomaticPackage='False'|\r\nNewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|\r\nSourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|\r\nSourceCommand.AllowSelfService='False'|\r\nSourceCommand.VisibleToAdminsOnly='False'|\r\nFeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|\r\nPinCommand.Command='unknown'|OutdatedCommand.IgnorePinned='False'|\r\nProxy.BypassOnLocal='True'|\r\n_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _\r\nInstalling the following packages:\r\n7zip-german\r\nBy installing you accept licenses for the packages.\r\n[NuGet] Attempting to resolve dependency 'chocolatey-core.extension (= 1.2)'.\r\nProgress: Downloading chocolatey-core.extension 1.3.3... 100%\r\nProgress: Downloading 7zip-german 18.0.5... 100%\r\n[NuGet] Installing 'chocolatey-core.extension 1.3.3'.\r\n[NuGet] Added file 'chocolatey-core.psm1' to folder 'chocolatey-core.extension\\extensions'.\r\n[NuGet] Added file 'Get-AppInstallLocation.ps1' to folder 'chocolatey-core.extension\\extensions'.\r\n[NuGet] Added file 'Get-AvailableDriveLetter.ps1' to folder 'chocolatey-core.extension\\extensions'.\r\n[NuGet] Added file 'Get-EffectiveProxy.ps1' to folder 'chocolatey-core.extension\\extensions'.\r\n[NuGet] Added file 'Get-PackageCacheLocation.ps1' to folder 'chocolatey-core.extension\\extensions'.\r\n[NuGet] Added file 'Get-PackageParameters.ps1' to folder 'chocolatey-core.extension\\extensions'.\r\n[NuGet] Added file 'Get-UninstallRegistryKey.ps1' to folder 'chocolatey-core.extension\\extensions'.\r\n[NuGet] Added file 'Get-WebContent.ps1' to folder 'chocolatey-core.extension\\extensions'.\r\n[NuGet] Added file 'Register-Application.ps1' to folder 'chocolatey-core.extension\\extensions'.\r\n[NuGet] Added file 'chocolatey-core.extension.nuspec' to folder 'chocolatey-core.extension'.\r\n[NuGet] Added file 'chocolatey-core.extension.nupkg' to folder 'chocolatey-core.extension'.\r\n[NuGet] Successfully installed 'chocolatey-core.extension 1.3.3'.\r\n\r\nchocolatey-core.extension v1.3.3\r\nchocolatey-core.extension package files install completed. Performing other installation steps.\r\nCapturing package files in 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\chocolatey-core.extension.nupkg'\r\n  with checksum '10F9271BEADE1B696AE3870C2FACC8ED'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\chocolatey-core.extension.nuspec'\r\n  with checksum 'DF6C67EA1E5F6EE4E17B63508B279D94'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\chocolatey-core.psm1'\r\n  with checksum '8007E67FDE249548DBF78D1DC8AFDCCC'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-AppInstallLocation.ps1'\r\n  with checksum 'D036C97BC50A3731BF69A15417F60E72'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-AvailableDriveLetter.ps1'\r\n  with checksum '2F386746AFC2ACB9561DFB245239B93F'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-EffectiveProxy.ps1'\r\n  with checksum '3895F062D2D91D9D32D1FC57A619066C'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-PackageCacheLocation.ps1'\r\n  with checksum '77A378E5C659E5A53D2D64E276159B62'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-PackageParameters.ps1'\r\n  with checksum 'C08B3AF8CA150B6609DF2B978B693269'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-UninstallRegistryKey.ps1'\r\n  with checksum '3FAA5C11AAFC4EA35BB98EA797446C97'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-WebContent.ps1'\r\n  with checksum '57D013E581EFEA3D4D8366183C9A5797'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Register-Application.ps1'\r\n  with checksum 'D2853E569DAC9A341642BA76EC4FB411'\r\nAttempting to create directory \"C:\\ProgramData\\chocolatey\\extensions\".\r\nAttempting to create directory \"C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\".\r\nAttempting to copy \"C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\chocolatey-core.psm1\"\r\n to \"C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\\chocolatey-core.psm1\".\r\nAttempting to copy \"C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-AppInstallLocation.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\\Get-AppInstallLocation.ps1\".\r\nAttempting to copy \"C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-AvailableDriveLetter.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\\Get-AvailableDriveLetter.ps1\".\r\nAttempting to copy \"C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-EffectiveProxy.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\\Get-EffectiveProxy.ps1\".\r\nAttempting to copy \"C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-PackageCacheLocation.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\\Get-PackageCacheLocation.ps1\".\r\nAttempting to copy \"C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-PackageParameters.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\\Get-PackageParameters.ps1\".\r\nAttempting to copy \"C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-UninstallRegistryKey.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\\Get-UninstallRegistryKey.ps1\".\r\nAttempting to copy \"C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Get-WebContent.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\\Get-WebContent.ps1\".\r\nAttempting to copy \"C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\extensions\\Register-Application.ps1\"\r\n to \"C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\\Register-Application.ps1\".\r\n Installed/updated chocolatey-core extensions.\r\nAttempting to create directory \"C:\\ProgramData\\chocolatey\\.chocolatey\".\r\nAdding 'Hidden' attribute(s) to 'C:\\ProgramData\\chocolatey\\.chocolatey'.\r\nAttempting to create directory \"C:\\ProgramData\\chocolatey\\.chocolatey\\chocolatey-core.extension.1.3.3\".\r\nThere was no original file at 'C:\\ProgramData\\chocolatey\\.chocolatey\\chocolatey-core.extension.1.3.3\\.files'\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\chocolatey-core.extension.1.3.3\\.extra\".\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\chocolatey-core.extension.1.3.3\\.version\".\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\chocolatey-core.extension.1.3.3\\.sxs\".\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\chocolatey-core.extension.1.3.3\\.pin\".\r\nSending message 'HandlePackageResultCompletedMessage' out if there are subscribers...\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\lib\\chocolatey-core.extension\\.chocolateyPending\".\r\n The install of chocolatey-core.extension was successful.\r\n  Software installed to 'C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core'\r\n[NuGet] Installing '7zip-german 18.0.5'.\r\n[NuGet] Added file '7zip_x32.exe' to folder '7zip-german\\tools'.\r\n[NuGet] Added file '7zip_x64.exe' to folder '7zip-german\\tools'.\r\n[NuGet] Added file 'chocolateyInstall.ps1' to folder '7zip-german\\tools'.\r\n[NuGet] Added file 'chocolateyUninstall.ps1' to folder '7zip-german\\tools'.\r\n[NuGet] Added file '7zip-german.nuspec' to folder '7zip-german'.\r\n[NuGet] Added file '7zip-german.nupkg' to folder '7zip-german'.\r\n[NuGet] Successfully installed '7zip-german 18.0.5'.\r\n\r\n7zip-german v18.0.5\r\n7zip-german package files install completed. Performing other installation steps.\r\nSetting installer args for 7zip-german\r\nSetting package parameters for 7zip-german\r\nContents of 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\chocolateyInstall.ps1':\r\n$ErrorActionPreference = 'Stop'\r\n\r\n$toolsDir = \"$(Split-Path -parent $MyInvocation.MyCommand.Definition)\"\r\n$filePath = if ((Get-ProcessorBits 64) -and $env:chocolateyForceX86 -ne $true) {\r\n       Write-Host \"Installing 64 bit version\" ; gi $toolsDir\\*_x64.exe }\r\nelse { Write-Host \"Installing 32 bit version\" ; gi $toolsDir\\*_x32.exe }\r\n\r\n$packageArgs = @{\r\n  packageName    = '7zip-german'\r\n  fileType       = 'exe'\r\n  softwareName   = '7-zip*'\r\n  file           = ($filePath).FullName\r\n  silentArgs     = '/S'\r\n  validExitCodes = @(0)\r\n}\r\nInstall-ChocolateyInstallPackage @packageArgs\r\nrm $toolsDir\\*.exe -ea 0 -force\r\n\r\n$installLocation = Get-AppInstallLocation $packageArgs.softwareName\r\nif (!$installLocation)  { Write-Warning \"Can't find 7zip install location\"; return }\r\nWrite-Host \"7zip installed to '$installLocation'\"\r\n\r\nInstall-BinFile '7z' $installLocation\\7z.exe\r\n\r\nThe package 7zip-german wants to run 'chocolateyInstall.ps1'.\r\nNote: If you don't run this script, the installation will fail.\r\nNote: To confirm automatically next time, use '-y' or consider:\r\nchoco feature enable -n allowGlobalConfirmation\r\nDo you want to run the script?([Y]es/[N]o/[P]rint): y\r\n\r\nCalling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\\ProgramData\\chocolatey\\helpers\\chocolateyInstaller.psm1'; & 'C:\\ProgramData\\chocolatey\\helpers\\chocolateyScriptRunner.ps1' -packageScript 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\chocolateyInstall.ps1' -installArguments '' -packageParameters ''']\r\nRedirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=de-DE, PublicKeyToken=31bf3856ad364e35, requested by ''\r\nHost version is 5.1.14393.0, PowerShell Version is '5.1.14393.2248' and CLR Version is '4.0.30319.42000'.\r\nVERBOSE: Exporting function 'Format-FileSize'.\r\nVERBOSE: Exporting function 'Get-ChecksumValid'.\r\nVERBOSE: Exporting function 'Get-ChocolateyUnzip'.\r\nVERBOSE: Exporting function 'Get-ChocolateyWebFile'.\r\nVERBOSE: Exporting function 'Get-EnvironmentVariable'.\r\nVERBOSE: Exporting function 'Get-EnvironmentVariableNames'.\r\nVERBOSE: Exporting function 'Get-FtpFile'.\r\nVERBOSE: Exporting function 'Get-OSArchitectureWidth'.\r\nVERBOSE: Exporting function 'Get-PackageParameters'.\r\nVERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.\r\nVERBOSE: Exporting function 'Get-ToolsLocation'.\r\nVERBOSE: Exporting function 'Get-UACEnabled'.\r\nVERBOSE: Exporting function 'Get-UninstallRegistryKey'.\r\nVERBOSE: Exporting function 'Get-VirusCheckValid'.\r\nVERBOSE: Exporting function 'Get-WebFile'.\r\nVERBOSE: Exporting function 'Get-WebFileName'.\r\nVERBOSE: Exporting function 'Get-WebHeaders'.\r\nVERBOSE: Exporting function 'Install-BinFile'.\r\nVERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.\r\nVERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.\r\nVERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.\r\nVERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.\r\nVERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.\r\nVERBOSE: Exporting function 'Install-ChocolateyPackage'.\r\nVERBOSE: Exporting function 'Install-ChocolateyPath'.\r\nVERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.\r\nVERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.\r\nVERBOSE: Exporting function 'Install-ChocolateyShortcut'.\r\nVERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.\r\nVERBOSE: Exporting function 'Install-ChocolateyZipPackage'.\r\nVERBOSE: Exporting function 'Install-Vsix'.\r\nVERBOSE: Exporting function 'Set-EnvironmentVariable'.\r\nVERBOSE: Exporting function 'Set-PowerShellExitCode'.\r\nVERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.\r\nVERBOSE: Exporting function 'Test-ProcessAdminRights'.\r\nVERBOSE: Exporting function 'Uninstall-BinFile'.\r\nVERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.\r\nVERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.\r\nVERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.\r\nVERBOSE: Exporting function 'Update-SessionEnvironment'.\r\nVERBOSE: Exporting function 'Write-ChocolateyFailure'.\r\nVERBOSE: Exporting function 'Write-ChocolateySuccess'.\r\nVERBOSE: Exporting function 'Write-FileUpdateLog'.\r\nVERBOSE: Exporting function 'Write-FunctionCallLogMessage'.\r\nVERBOSE: Exporting alias 'Get-ProcessorBits'.\r\nVERBOSE: Exporting alias 'Get-OSBitness'.\r\nVERBOSE: Exporting alias 'Get-InstallRegistryKey'.\r\nVERBOSE: Exporting alias 'Generate-BinFile'.\r\nVERBOSE: Exporting alias 'Add-BinFile'.\r\nVERBOSE: Exporting alias 'Start-ChocolateyProcess'.\r\nVERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.\r\nVERBOSE: Exporting alias 'Remove-BinFile'.\r\nVERBOSE: Exporting alias 'refreshenv'.\r\nLoading community extensions\r\nImporting 'C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\\chocolatey-core.psm1'\r\nVERBOSE: Loading module from path 'C:\\ProgramData\\chocolatey\\extensions\\chocolatey-core\\chocolatey-core.psm1'.\r\nVERBOSE: Exporting function 'Get-UninstallRegistryKey'.\r\nVERBOSE: Exporting function 'Get-AppInstallLocation'.\r\nVERBOSE: Exporting function 'Get-AvailableDriveLetter'.\r\nVERBOSE: Exporting function 'Get-EffectiveProxy'.\r\nVERBOSE: Exporting function 'Get-PackageCacheLocation'.\r\nVERBOSE: Exporting function 'Get-PackageParameters'.\r\nVERBOSE: Exporting function 'Get-WebContent'.\r\nVERBOSE: Exporting function 'Register-Application'.\r\nVERBOSE: Importing function 'Get-AppInstallLocation'.\r\nVERBOSE: Importing function 'Get-AvailableDriveLetter'.\r\nVERBOSE: Importing function 'Get-EffectiveProxy'.\r\nVERBOSE: Importing function 'Get-PackageCacheLocation'.\r\nVERBOSE: Importing function 'Get-PackageParameters'.\r\nVERBOSE: Importing function 'Get-UninstallRegistryKey'.\r\nVERBOSE: Importing function 'Get-WebContent'.\r\nVERBOSE: Importing function 'Register-Application'.\r\nVERBOSE: Exporting function 'Format-FileSize'.\r\nVERBOSE: Exporting function 'Get-ChecksumValid'.\r\nVERBOSE: Exporting function 'Get-ChocolateyUnzip'.\r\nVERBOSE: Exporting function 'Get-ChocolateyWebFile'.\r\nVERBOSE: Exporting function 'Get-EnvironmentVariable'.\r\nVERBOSE: Exporting function 'Get-EnvironmentVariableNames'.\r\nVERBOSE: Exporting function 'Get-FtpFile'.\r\nVERBOSE: Exporting function 'Get-OSArchitectureWidth'.\r\nVERBOSE: Exporting function 'Get-PackageParameters'.\r\nVERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.\r\nVERBOSE: Exporting function 'Get-ToolsLocation'.\r\nVERBOSE: Exporting function 'Get-UACEnabled'.\r\nVERBOSE: Exporting function 'Get-UninstallRegistryKey'.\r\nVERBOSE: Exporting function 'Get-VirusCheckValid'.\r\nVERBOSE: Exporting function 'Get-WebFile'.\r\nVERBOSE: Exporting function 'Get-WebFileName'.\r\nVERBOSE: Exporting function 'Get-WebHeaders'.\r\nVERBOSE: Exporting function 'Install-BinFile'.\r\nVERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.\r\nVERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.\r\nVERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.\r\nVERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.\r\nVERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.\r\nVERBOSE: Exporting function 'Install-ChocolateyPackage'.\r\nVERBOSE: Exporting function 'Install-ChocolateyPath'.\r\nVERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.\r\nVERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.\r\nVERBOSE: Exporting function 'Install-ChocolateyShortcut'.\r\nVERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.\r\nVERBOSE: Exporting function 'Install-ChocolateyZipPackage'.\r\nVERBOSE: Exporting function 'Install-Vsix'.\r\nVERBOSE: Exporting function 'Set-EnvironmentVariable'.\r\nVERBOSE: Exporting function 'Set-PowerShellExitCode'.\r\nVERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.\r\nVERBOSE: Exporting function 'Test-ProcessAdminRights'.\r\nVERBOSE: Exporting function 'Uninstall-BinFile'.\r\nVERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.\r\nVERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.\r\nVERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.\r\nVERBOSE: Exporting function 'Update-SessionEnvironment'.\r\nVERBOSE: Exporting function 'Write-ChocolateyFailure'.\r\nVERBOSE: Exporting function 'Write-ChocolateySuccess'.\r\nVERBOSE: Exporting function 'Write-FileUpdateLog'.\r\nVERBOSE: Exporting function 'Write-FunctionCallLogMessage'.\r\nVERBOSE: Exporting function 'Get-AppInstallLocation'.\r\nVERBOSE: Exporting function 'Get-AvailableDriveLetter'.\r\nVERBOSE: Exporting function 'Get-EffectiveProxy'.\r\nVERBOSE: Exporting function 'Get-PackageCacheLocation'.\r\nVERBOSE: Exporting function 'Get-WebContent'.\r\nVERBOSE: Exporting function 'Register-Application'.\r\nVERBOSE: Exporting alias 'Get-ProcessorBits'.\r\nVERBOSE: Exporting alias 'Get-OSBitness'.\r\nVERBOSE: Exporting alias 'Get-InstallRegistryKey'.\r\nVERBOSE: Exporting alias 'Generate-BinFile'.\r\nVERBOSE: Exporting alias 'Add-BinFile'.\r\nVERBOSE: Exporting alias 'Start-ChocolateyProcess'.\r\nVERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.\r\nVERBOSE: Exporting alias 'Remove-BinFile'.\r\nVERBOSE: Exporting alias 'refreshenv'.\r\nVERBOSE: Importing function 'Format-FileSize'.\r\nVERBOSE: Importing function 'Get-AppInstallLocation'.\r\nVERBOSE: Importing function 'Get-AvailableDriveLetter'.\r\nVERBOSE: Importing function 'Get-ChecksumValid'.\r\nVERBOSE: Importing function 'Get-ChocolateyUnzip'.\r\nVERBOSE: Importing function 'Get-ChocolateyWebFile'.\r\nVERBOSE: Importing function 'Get-EffectiveProxy'.\r\nVERBOSE: Importing function 'Get-EnvironmentVariable'.\r\nVERBOSE: Importing function 'Get-EnvironmentVariableNames'.\r\nVERBOSE: Importing function 'Get-FtpFile'.\r\nVERBOSE: Importing function 'Get-OSArchitectureWidth'.\r\nVERBOSE: Importing function 'Get-PackageCacheLocation'.\r\nVERBOSE: Importing function 'Get-PackageParameters'.\r\nVERBOSE: Importing function 'Get-PackageParametersBuiltIn'.\r\nVERBOSE: Importing function 'Get-ToolsLocation'.\r\nVERBOSE: Importing function 'Get-UACEnabled'.\r\nVERBOSE: Importing function 'Get-UninstallRegistryKey'.\r\nVERBOSE: Importing function 'Get-VirusCheckValid'.\r\nVERBOSE: Importing function 'Get-WebContent'.\r\nVERBOSE: Importing function 'Get-WebFile'.\r\nVERBOSE: Importing function 'Get-WebFileName'.\r\nVERBOSE: Importing function 'Get-WebHeaders'.\r\nVERBOSE: Importing function 'Install-BinFile'.\r\nVERBOSE: Importing function 'Install-ChocolateyDesktopLink'.\r\nVERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.\r\nVERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.\r\nVERBOSE: Importing function 'Install-ChocolateyFileAssociation'.\r\nVERBOSE: Importing function 'Install-ChocolateyInstallPackage'.\r\nVERBOSE: Importing function 'Install-ChocolateyPackage'.\r\nVERBOSE: Importing function 'Install-ChocolateyPath'.\r\nVERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.\r\nVERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.\r\nVERBOSE: Importing function 'Install-ChocolateyShortcut'.\r\nVERBOSE: Importing function 'Install-ChocolateyVsixPackage'.\r\nVERBOSE: Importing function 'Install-ChocolateyZipPackage'.\r\nVERBOSE: Importing function 'Install-Vsix'.\r\nVERBOSE: Importing function 'Register-Application'.\r\nVERBOSE: Importing function 'Set-EnvironmentVariable'.\r\nVERBOSE: Importing function 'Set-PowerShellExitCode'.\r\nVERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.\r\nVERBOSE: Importing function 'Test-ProcessAdminRights'.\r\nVERBOSE: Importing function 'Uninstall-BinFile'.\r\nVERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.\r\nVERBOSE: Importing function 'Uninstall-ChocolateyPackage'.\r\nVERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.\r\nVERBOSE: Importing function 'Update-SessionEnvironment'.\r\nVERBOSE: Importing function 'Write-ChocolateyFailure'.\r\nVERBOSE: Importing function 'Write-ChocolateySuccess'.\r\nVERBOSE: Importing function 'Write-FileUpdateLog'.\r\nVERBOSE: Importing function 'Write-FunctionCallLogMessage'.\r\nVERBOSE: Importing alias 'Add-BinFile'.\r\nVERBOSE: Importing alias 'Generate-BinFile'.\r\nVERBOSE: Importing alias 'Get-InstallRegistryKey'.\r\nVERBOSE: Importing alias 'Get-OSBitness'.\r\nVERBOSE: Importing alias 'Get-ProcessorBits'.\r\nVERBOSE: Importing alias 'Invoke-ChocolateyProcess'.\r\nVERBOSE: Importing alias 'refreshenv'.\r\nVERBOSE: Importing alias 'Remove-BinFile'.\r\nVERBOSE: Importing alias 'Start-ChocolateyProcess'.\r\nRunning 'ChocolateyScriptRunner' for 7zip-german v18.0.5 with packageScript 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\chocolateyInstall.ps1', packageFolder:'C:\\ProgramData\\chocolatey\\lib\\7zip-german', installArguments: '', packageParameters: '',\r\nRunning 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\chocolateyInstall.ps1'\r\nRunning Get-ProcessorBits -compare '64'\r\nInstalling 64 bit version\r\nRunning Install-ChocolateyInstallPackage -silentArgs '/S' -file 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\7zip_x64.exe' -fileType 'exe' -validExitCodes '0' -packageName '7zip-german'\r\nRunning Get-ProcessorBits -compare '32'\r\nInstalling 7zip-german...\r\nRunning Start-ChocolateyProcessAsAdmin -validExitCodes '0' -workingDirectory 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools' -statements '/S ' -exeToRun 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\7zip_x64.exe'\r\nTest-ProcessAdminRights: returning True\r\nElevating permissions and running [\"C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\7zip_x64.exe\" /S ]. This may take awhile, depending on the statements.\r\nCommand [\"C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\7zip_x64.exe\" /S ] exited with '0'.\r\nFinishing 'Start-ChocolateyProcessAsAdmin'\r\n7zip-german has been installed.\r\nVERBOSE: Trying local and machine (x32 & x64) Uninstall keys\r\nRunning 'Get-UninstallRegistryKey' for '7zip-german' with SoftwareName:'7-zip*'\r\nVERBOSE: Retrieving all uninstall registry keys\r\nRegistry uninstall keys on system: 27\r\nError handling check: 'Get-ItemProperty' fails if a registry key is encoded incorrectly.\r\nFound 1 uninstall registry key(s) with SoftwareName:'7-zip*'\r\nVERBOSE: Trying Uninstall key property 'InstallLocation'\r\n7zip installed to 'C:\\Program Files\\7-Zip'\r\nRunning Install-BinFile -name '7z' -path 'C:\\Program Files\\7-Zip\\7z.exe'\r\nShimGen found at 'C:\\ProgramData\\chocolatey\\tools\\shimgen.exe'\r\nCalling C:\\ProgramData\\chocolatey\\tools\\shimgen.exe -o \"C:\\ProgramData\\chocolatey\\bin\\7z.exe\" -p \"c:\\program files\\7-zip\\7z.exe\" -i \"C:\\Program Files\\7-Zip\\7z.exe\"\r\nAdded C:\\ProgramData\\chocolatey\\bin\\7z.exe shim pointed to 'c:\\program files\\7-zip\\7z.exe'.\r\nBuilt-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\\ProgramData\\chocolatey\\helpers\\chocolateyInstaller.psm1'; & 'C:\\ProgramData\\chocolatey\\helpers\\chocolateyScriptRunner.ps1' -packageScript 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.\r\nCalling command ['\"C:\\Windows\\System32\\shutdown.exe\" /a']\r\nCommand ['\"C:\\Windows\\System32\\shutdown.exe\" /a'] exited with '1116'\r\n  7zip-german may be able to be automatically uninstalled.\r\nCapturing package files in 'C:\\ProgramData\\chocolatey\\lib\\7zip-german'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\7zip-german.nupkg'\r\n  with checksum 'F92F364499C1E429CF84BC9B0AC98F3F'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\7zip-german.nuspec'\r\n  with checksum 'EA7105654A4EE5A4E7266B2CDEE71E17'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\7zip_x64.exe.ignore'\r\n  with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\chocolateyInstall.ps1'\r\n  with checksum '0A3C59DB9C8CDDC7799650681C39620D'\r\n Found 'C:\\ProgramData\\chocolatey\\lib\\7zip-german\\tools\\chocolateyUninstall.ps1'\r\n  with checksum '3E981BE0C9F6847AC8F53D8C35962A50'\r\nAttempting to create directory \"C:\\ProgramData\\chocolatey\\.chocolatey\\7zip-german.18.0.5\".\r\nThere was no original file at 'C:\\ProgramData\\chocolatey\\.chocolatey\\7zip-german.18.0.5\\.registry'\r\nThere was no original file at 'C:\\ProgramData\\chocolatey\\.chocolatey\\7zip-german.18.0.5\\.files'\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\7zip-german.18.0.5\\.extra\".\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\7zip-german.18.0.5\\.version\".\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\7zip-german.18.0.5\\.sxs\".\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\7zip-german.18.0.5\\.pin\".\r\nSending message 'HandlePackageResultCompletedMessage' out if there are subscribers...\r\nAttempting to delete file \"C:\\ProgramData\\chocolatey\\lib\\7zip-german\\.chocolateyPending\".\r\n The install of 7zip-german was successful.\r\n  Software installed to 'C:\\Program Files\\7-Zip\\'\r\nAttempting to delete file \"C:\\Users\\Administrator\\AppData\\Local\\NuGet\\Cache\\7zip-german.18.0.5.nupkg\".\r\n\r\nChocolatey installed 2/2 packages.\r\n See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).\r\nSending message 'PostRunMessage' out if there are subscribers...\r\nExiting with 0\r\n~~~\r\n\r\n</p>\r\n\r\n</details>"},"comment":{"url":"https://api.github.com/repos/chocolatey/choco/issues/comments/396092274","html_url":"https://github.com/chocolatey/choco/issues/1592#issuecomment-396092274","issue_url":"https://api.github.com/repos/chocolatey/choco/issues/1592","id":396092274,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjA5MjI3NA==","user":{"login":"bcurran3","id":14026600,"node_id":"MDQ6VXNlcjE0MDI2NjAw","avatar_url":"https://avatars2.githubusercontent.com/u/14026600?v=4","gravatar_id":"","url":"https://api.github.com/users/bcurran3","html_url":"https://github.com/bcurran3","followers_url":"https://api.github.com/users/bcurran3/followers","following_url":"https://api.github.com/users/bcurran3/following{/other_user}","gists_url":"https://api.github.com/users/bcurran3/gists{/gist_id}","starred_url":"https://api.github.com/users/bcurran3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcurran3/subscriptions","organizations_url":"https://api.github.com/users/bcurran3/orgs","repos_url":"https://api.github.com/users/bcurran3/repos","events_url":"https://api.github.com/users/bcurran3/events{/privacy}","received_events_url":"https://api.github.com/users/bcurran3/received_events","type":"User","site_admin":false},"created_at":"2018-06-10T23:59:58Z","updated_at":"2018-06-10T23:59:58Z","author_association":"NONE","body":"I just added support to clean $env:USERPROFILE\\AppData\\Local\\NuGet\\Cache to:\r\nhttps://chocolatey.org/packages/choco-cleaner/0.0.4\r\n\r\nSome please correct me if I'm wrong, but I believe these files only exist when Nuget client is installed such as nuget.commandline? (@buenyamin can you confirm?)  I don't believe Chocolatey per se knows about, creates, or maintains that folder ever."}}
{"actor":{"display_login":"bcurran3"}}