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

upgrade - remove automation scripts prior to upgrade even if changed #1689

Closed
ferventcoder opened this issue Dec 5, 2018 · 2 comments
Closed

Comments

@ferventcoder
Copy link
Member

ferventcoder commented Dec 5, 2018

tl;dr - Package Reducer causes this behavior because of removing files from the nupkg to reduce the size. Let's fix it so that it no longer does this.

What You Are Seeing?

An upgrade appears to be using an old chocolateyInstall.ps1 after a newer version removed the need for the script. This means the file would not have been overwritten, but should have been removed since it was changed.

What is Expected?

Files that have not been changed from the older nupkg installation should be removed.

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

Turn on Package Reducer (no more files in the older nupkg to compare to).

Install transifex-client version 0.12.4. Note it has a chocolateyInstall.ps1. Then upgrade to 0.13.2 (note it does not have a chocolateyInstall.ps1).

See it fail because it did not remove the file.

Output Log

Full Log Output

2018-12-05 15:59:23,257 884 [DEBUG] - XmlConfiguration is now operational
2018-12-05 15:59:23,271 884 [DEBUG] - Evaluating license file found at 'C:\ProgramData\chocolatey\license\chocolatey.license.xml'
2018-12-05 15:59:23,404 884 [DEBUG] - Loading Licensed Extensions and Commands
2018-12-05 15:59:23,417 884 [INFO ] - ============================================================
2018-12-05 15:59:23,555 884 [INFO ] - Chocolatey v0.10.11 Business
2018-12-05 15:59:23,563 884 [DEBUG] - Chocolatey is running on Windows v 6.1.7601.65536
2018-12-05 15:59:23,564 884 [DEBUG] - Attempting to delete file "C:/ProgramData/Chocolatey/choco.exe.old".
2018-12-05 15:59:23,565 884 [DEBUG] - Attempting to delete file "C:\ProgramData\Chocolatey\choco.exe.old".
2018-12-05 15:59:23,574 884 [DEBUG] - Command line: "C:\ProgramData\Chocolatey\choco.exe" upgrade transifex-client
2018-12-05 15:59:23,574 884 [DEBUG] - Received arguments: upgrade transifex-client
2018-12-05 15:59:23,615 884 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2018-12-05 15:59:23,617 884 [DEBUG] - CountdownTask is now ready and waiting for PostRunMessage.
2018-12-05 15:59:23,618 884 [DEBUG] - Terminal services setup not necessary for this session.
2018-12-05 15:59:23,620 884 [DEBUG] - SynchronizeTask is now ready and waiting for PreRunMessage.
2018-12-05 15:59:23,622 884 [DEBUG] - PackagesInProgramsAndFeaturesTask is now ready and waiting for PostRunMessage.
2018-12-05 15:59:23,626 884 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2018-12-05 15:59:23,632 884 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2018-12-05 15:59:23,731 884 [DEBUG] - [Synchronize] Updating packages with Programs and Features
2018-12-05 15:59:24,453 884 [DEBUG] - The source 'c:\packages;https://licensedpackages.chocolatey.org/api/v2/;https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2018-12-05 15:59:24,480 884 [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.
2018-12-05 15:59:24,494 884 [DEBUG] - Configuration: MaximumDownloadRateBitsPerSecond='0'|
MaximumDownloadRateBitsPerSecondAutoSet='False'|
LicensedInformation.LicenseType='Business'|
LicensedInformation.LicenseIsValid='True'|
LicensedInformation.LicenseIsTrial='False'|
LicensedInformation.PauseInTrial='False'|
LicensedInformation.LicensedVersion='1.12.12.0'|
LicensedInformation.LicensedProductVersion='1.12.12'|
ChocolateyVersion.PackageReleaseVersion='0'|
LicensedFeatures.UseDownloadCache='True'|
LicensedFeatures.AllowSynchronization='True'|
LicensedFeatures.UseBackgroundService='False'|
LicensedFeatures.UseBackgroundServiceWithSelfServiceSourcesOnly='True'|
LicensedFeatures.AllowPreviewFeatures='True'|
LicensedFeatures.ShowAllPackagesInProgramsAndFeatures='False'|
LicensedFeatures.AdminOnlyExecutionForAllChocolateyCommands='False'|
LicensedFeatures.AdminOnlyExecutionForNewCommand='False'|
LicensedFeatures.AdminOnlyExecutionForDownloadCommand='False'|
LicensedFeatures.UseBackgroundServiceWithNonAdministratorsOnly='False'|
LicensedFeatures.UseBackgroundServiceInteractively='False'|
LicensedFeatures.UseBackgroundServiceWithEmptySessions='True'|
LicensedFeatures.ReduceInstalledPackageSize='True'|
LicensedFeatures.ReduceOnlyNupkgSize='False'|
LicensedFeatures.UseLocalSystemForServiceInstalls='True'|
LicensedFeatures.WarnOnUpcomingLicenseExpiration='True'|
LicensedNewCommand.UseOriginalFilesLocation='False'|
LicensedNewCommand.PauseOnError='False'|
LicensedNewCommand.BuildPackage='False'|
LicensedNewCommand.GeneratePackagesFromSoftwareInstalls='False'|
LicensedNewCommand.IncludeArchitectureInPackageId='False'|
LicensedNewCommand.GenerateForCommunityUse='False'|
LicensedDownloadCommand.Internalize='False'|
LicensedDownloadCommand.AppendUseOriginalLocation='True'|
LicensedDownloadCommand.InternalizeAnyUrlFound='False'|
LicensedListCommand.ShowAuditInformation='False'|
LicensedListCommand.ShowDisplayVersion='False'|
LicensedUninstallCommand.FromProgramsAndFeatures='False'|
VirusConfiguration.VirusCheckMinimumPositives='5'|
VirusConfiguration.VirusScannerType='VirusTotal'|
VirusConfiguration.GenericVirusScannerArgs='[[File]]'|
VirusConfiguration.GenericVirusScannerValidExitCodes='0'|
LicensedServiceInstaller.DefaultUserName='ChocolateyLocalAdmin'|
CommandName='upgrade'|CacheLocation='c:\programdata\choco-cache'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='45'|
Sources='c:\packages;https://licensedpackages.chocolatey.org/api/v2/;https://chocolatey.org/api/v2/'|

SourceType='normal'|Debug='False'|Verbose='False'|Trace='False'|
Force='False'|Noop='False'|HelpRequested='False'|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='transifex-client'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='transifex-client'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='False'|Information.IsProcessElevated='True'|
Information.IsLicensedVersion='True'|
Information.LicenseType='Business'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='True'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
PinCommand.Command='unknown'|OutdatedCommand.IgnorePinned='False'|
Proxy.User='123'|Proxy.BypassOnLocal='True'|
2018-12-05 15:59:24,495 884 [DEBUG] - _ Chocolatey:ProChocolateyUpgradeCommand - Normal Run Mode _
2018-12-05 15:59:24,502 884 [INFO ] - Upgrading the following packages:
2018-12-05 15:59:24,505 884 [INFO ] - transifex-client
2018-12-05 15:59:24,507 884 [INFO ] - By upgrading you accept licenses for the packages.
2018-12-05 15:59:25,201 884 [WARN ] - 
You have transifex-client v0.12.4 installed. Version 0.13.5 is available based on your source(s).
2018-12-05 15:59:25,277 884 [DEBUG] - Backing up existing transifex-client prior to operation.
2018-12-05 15:59:25,279 884 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\transifex-client'
 to 'C:\ProgramData\chocolatey\lib-bkp\transifex-client'
2018-12-05 15:59:27,282 884 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\transifex-client".
2018-12-05 15:59:27,286 884 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\transifex-client\transifex-client.nupkg"
 to "C:\ProgramData\chocolatey\lib\transifex-client\transifex-client.nupkg".
2018-12-05 15:59:27,287 884 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\transifex-client\transifex-client.nuspec"
 to "C:\ProgramData\chocolatey\lib\transifex-client\transifex-client.nuspec".
2018-12-05 15:59:27,289 884 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\transifex-client\legal".
2018-12-05 15:59:27,290 884 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\transifex-client\legal\LICENSE.txt"
 to "C:\ProgramData\chocolatey\lib\transifex-client\legal\LICENSE.txt".
2018-12-05 15:59:27,292 884 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\transifex-client\legal\VERIFICATION.txt"
 to "C:\ProgramData\chocolatey\lib\transifex-client\legal\VERIFICATION.txt".
2018-12-05 15:59:27,293 884 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\transifex-client\tools".
2018-12-05 15:59:27,294 884 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\transifex-client\tools\chocolateyInstall.ps1"
 to "C:\ProgramData\chocolatey\lib\transifex-client\tools\chocolateyInstall.ps1".
2018-12-05 15:59:27,296 884 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\transifex-client\tools\tx.exe"
 to "C:\ProgramData\chocolatey\lib\transifex-client\tools\tx.exe".
2018-12-05 15:59:28,810 884 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\transifex-client'
2018-12-05 15:59:28,811 884 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\transifex-client\transifex-client.nupkg'
  with checksum '610102939A8C92DE317C3E939B853062'
2018-12-05 15:59:28,812 884 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\transifex-client\transifex-client.nuspec'
  with checksum '1FD7684EAB32D812E2459B46D2529D4D'
2018-12-05 15:59:28,813 884 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\transifex-client\legal\LICENSE.txt'
  with checksum '242E2121E5F18EFE4A692C28D3A03C74'
2018-12-05 15:59:28,814 884 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\transifex-client\legal\VERIFICATION.txt'
  with checksum '0B98CD54ECDC32E852EE99750C399FEA'
2018-12-05 15:59:28,815 884 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\transifex-client\tools\chocolateyInstall.ps1'
  with checksum '8B31D59006291B1AA34EAC3A8F86881F'
2018-12-05 15:59:28,851 884 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\transifex-client\tools\tx.exe'
  with checksum 'E1D7E5544CE71C89451675C5D856F8BD'
2018-12-05 15:59:29,694 884 [INFO ] - [NuGet] Attempting to resolve dependency 'python (= 3.6.0)'.
2018-12-05 15:59:30,464 884 [INFO ] - [NuGet] Attempting to resolve dependency 'python3 (= 3.6.0)'.
2018-12-05 15:59:33,782 884 [INFO ] - [NuGet] Uninstalling 'transifex-client 0.12.4'.
2018-12-05 15:59:33,791 884 [DEBUG] - [NuGet] Removed file 'transifex-client.nuspec' to folder 'C:\ProgramData\chocolatey\lib\transifex-client'.
2018-12-05 15:59:33,791 884 [DEBUG] - [NuGet] Removed file 'transifex-client.nupkg' to folder 'C:\ProgramData\chocolatey\lib\transifex-client'.
2018-12-05 15:59:33,794 884 [DEBUG] - [NuGet] The directory is not empty.

2018-12-05 15:59:33,795 884 [INFO ] - [NuGet] Successfully uninstalled 'transifex-client 0.12.4'.
2018-12-05 16:00:33,373 884 [INFO ] - [NuGet] Installing 'transifex-client 0.13.5'.
2018-12-05 16:00:33,376 884 [DEBUG] - [NuGet] Added file 'LICENSE.txt' to folder 'transifex-client\legal'.
2018-12-05 16:00:33,377 884 [DEBUG] - [NuGet] Added file 'VERIFICATION.txt' to folder 'transifex-client\legal'.
2018-12-05 16:00:33,397 884 [DEBUG] - [NuGet] Added file 'tx.exe' to folder 'transifex-client\tools'.
2018-12-05 16:00:33,426 884 [DEBUG] - [NuGet] Added file 'transifex-client.nuspec' to folder 'transifex-client'.
2018-12-05 16:00:33,445 884 [DEBUG] - [NuGet] Added file 'transifex-client.nupkg' to folder 'transifex-client'.
2018-12-05 16:00:33,446 884 [INFO ] - [NuGet] Successfully installed 'transifex-client 0.13.5'.
2018-12-05 16:00:33,446 884 [INFO ] - 
transifex-client v0.13.5 [Approved]
2018-12-05 16:00:33,451 884 [INFO ] - transifex-client package files upgrade completed. Performing other installation steps.
2018-12-05 16:00:33,556 884 [DEBUG] - [Licensing] License expiration date is 05/30/2020 00:00:00
2018-12-05 16:00:33,585 884 [DEBUG] - Setting installer args for transifex-client
2018-12-05 16:00:33,586 884 [DEBUG] - Setting package parameters for transifex-client
2018-12-05 16:00:33,586 884 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\transifex-client\tools\chocolateyInstall.ps1':
2018-12-05 16:00:33,587 884 [DEBUG] - $ErrorActionPreference = 'Stop'

$toolsPath = Split-Path -parent $MyInvocation.MyCommand.Definition
$32bitExec = "$toolsPath\tx-32.exe"
$64bitExec = "$toolsPath\tx-64.exe"
$destination = "$toolsPath\tx.exe"

if (Test-Path $destination) { Remove-Item -Force $destination }

if ((Get-ProcessorBits 32) -or ($env:chocolateyForceX86 -eq $true)) {
  Move-Item -Force $32bitExec $destination
  Remove-Item -Force $64bitExec
} else {
  Move-Item -Force $64bitExec $destination
  Remove-Item -Force $32bitExec
}

2018-12-05 16:00:33,588 884 [INFO ] - The package transifex-client wants to run 'chocolateyInstall.ps1'.
2018-12-05 16:00:33,591 884 [INFO ] - Note: If you don't run this script, the installation will fail.
2018-12-05 16:00:33,594 884 [INFO ] - Note: To confirm automatically next time, use '-y' or consider:
2018-12-05 16:00:33,596 884 [INFO ] - choco feature enable -n allowGlobalConfirmation
2018-12-05 16:00:33,607 884 [INFO ] - Do you want to run the script?
2018-12-05 16:00:33,608 884 [INFO ] -  1) yes
2018-12-05 16:00:33,610 884 [INFO ] -  2) no
2018-12-05 16:00:33,612 884 [INFO ] -  3) print
2018-12-05 16:00:38,537 884 [INFO ] - Choice selected: 'yes'
2018-12-05 16:00:38,538 884 [DEBUG] - Calling 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\transifex-client\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''']
2018-12-05 16:00:38,690 884 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2018-12-05 16:00:38,691 884 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2018-12-05 16:00:38,692 884 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2018-12-05 16:00:38,692 884 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2018-12-05 16:00:38,693 884 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2018-12-05 16:00:38,694 884 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2018-12-05 16:00:38,694 884 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2018-12-05 16:00:38,695 884 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2018-12-05 16:00:38,695 884 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2018-12-05 16:00:38,696 884 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2018-12-05 16:00:38,696 884 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2018-12-05 16:00:38,697 884 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2018-12-05 16:00:38,697 884 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2018-12-05 16:00:38,698 884 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2018-12-05 16:00:38,698 884 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2018-12-05 16:00:38,699 884 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2018-12-05 16:00:38,699 884 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2018-12-05 16:00:38,700 884 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2018-12-05 16:00:38,700 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2018-12-05 16:00:38,701 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2018-12-05 16:00:38,701 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2018-12-05 16:00:38,702 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2018-12-05 16:00:38,702 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2018-12-05 16:00:38,703 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2018-12-05 16:00:38,703 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2018-12-05 16:00:38,704 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2018-12-05 16:00:38,704 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2018-12-05 16:00:38,705 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2018-12-05 16:00:38,705 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2018-12-05 16:00:38,706 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2018-12-05 16:00:38,706 884 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2018-12-05 16:00:38,707 884 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2018-12-05 16:00:38,707 884 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2018-12-05 16:00:38,708 884 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2018-12-05 16:00:38,708 884 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2018-12-05 16:00:38,709 884 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2018-12-05 16:00:38,709 884 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2018-12-05 16:00:38,710 884 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2018-12-05 16:00:38,710 884 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2018-12-05 16:00:38,711 884 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2018-12-05 16:00:38,711 884 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2018-12-05 16:00:38,712 884 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2018-12-05 16:00:38,712 884 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2018-12-05 16:00:38,713 884 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2018-12-05 16:00:38,713 884 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2018-12-05 16:00:38,714 884 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2018-12-05 16:00:38,714 884 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2018-12-05 16:00:38,715 884 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2018-12-05 16:00:38,716 884 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2018-12-05 16:00:38,716 884 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2018-12-05 16:00:38,717 884 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2018-12-05 16:00:38,717 884 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2018-12-05 16:00:38,718 884 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2018-12-05 16:00:38,719 884 [DEBUG] - Loading community extensions
2018-12-05 16:00:38,720 884 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.licensed.dll'
2018-12-05 16:00:38,720 884 [DEBUG] - Loading 'chocolatey.licensed' extension.
2018-12-05 16:00:38,721 884 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.licensed.dll'.
2018-12-05 16:00:38,722 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyWebFileCmdlet'.
2018-12-05 16:00:38,723 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-VirusCheckValidCmdlet'.
2018-12-05 16:00:38,723 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileCmdlet'.
2018-12-05 16:00:38,724 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileNameCmdlet'.
2018-12-05 16:00:38,724 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebHeadersCmdlet'.
2018-12-05 16:00:38,724 884 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyInstallPackageCmdlet'.
2018-12-05 16:00:38,725 884 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPackageCmdlet'.
2018-12-05 16:00:38,725 884 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,726 884 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ChocolateyProcessCmdlet'.
2018-12-05 16:00:38,726 884 [INFO ] - VERBOSE: Importing cmdlet 'Start-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,727 884 [INFO ] - VERBOSE: Importing cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,727 884 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,731 884 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.extensions.psm1'
2018-12-05 16:00:38,731 884 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.extensions.psm1'.
2018-12-05 16:00:38,733 884 [DEBUG] - Loading 'chocolatey.licensed' extension.
2018-12-05 16:00:38,734 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyWebFileCmdlet'.
2018-12-05 16:00:38,735 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-VirusCheckValidCmdlet'.
2018-12-05 16:00:38,735 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileCmdlet'.
2018-12-05 16:00:38,736 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileNameCmdlet'.
2018-12-05 16:00:38,737 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebHeadersCmdlet'.
2018-12-05 16:00:38,737 884 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyInstallPackageCmdlet'.
2018-12-05 16:00:38,738 884 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPackageCmdlet'.
2018-12-05 16:00:38,739 884 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,739 884 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ChocolateyProcessCmdlet'.
2018-12-05 16:00:38,740 884 [INFO ] - VERBOSE: Importing cmdlet 'Start-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,740 884 [INFO ] - VERBOSE: Importing cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,741 884 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,742 884 [DEBUG] - License type set to Business
2018-12-05 16:00:38,743 884 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2018-12-05 16:00:38,744 884 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2018-12-05 16:00:38,798 884 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2018-12-05 16:00:38,799 884 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2018-12-05 16:00:38,800 884 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2018-12-05 16:00:38,801 884 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2018-12-05 16:00:38,802 884 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2018-12-05 16:00:38,802 884 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2018-12-05 16:00:38,803 884 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2018-12-05 16:00:38,804 884 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2018-12-05 16:00:38,804 884 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2018-12-05 16:00:38,805 884 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2018-12-05 16:00:38,806 884 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2018-12-05 16:00:38,806 884 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2018-12-05 16:00:38,807 884 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2018-12-05 16:00:38,807 884 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2018-12-05 16:00:38,808 884 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2018-12-05 16:00:38,808 884 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2018-12-05 16:00:38,809 884 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-visualstudio\chocolatey-visualstudio.extension.psm1'
2018-12-05 16:00:38,810 884 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-visualstudio\chocolatey-visualstudio.extension.psm1'.
2018-12-05 16:00:38,843 884 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioComponent'.
2018-12-05 16:00:38,844 884 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioWorkload'.
2018-12-05 16:00:38,844 884 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstaller'.
2018-12-05 16:00:38,845 884 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstance'.
2018-12-05 16:00:38,846 884 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudio'.
2018-12-05 16:00:38,846 884 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioInstaller'.
2018-12-05 16:00:38,847 884 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioComponent'.
2018-12-05 16:00:38,847 884 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioProduct'.
2018-12-05 16:00:38,848 884 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioWorkload'.
2018-12-05 16:00:38,848 884 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudio'.
2018-12-05 16:00:38,849 884 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioComponent'.
2018-12-05 16:00:38,849 884 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioWorkload'.
2018-12-05 16:00:38,850 884 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstaller'.
2018-12-05 16:00:38,850 884 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstance'.
2018-12-05 16:00:38,851 884 [INFO ] - VERBOSE: Importing function 'Install-VisualStudio'.
2018-12-05 16:00:38,851 884 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioInstaller'.
2018-12-05 16:00:38,852 884 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioComponent'.
2018-12-05 16:00:38,852 884 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioProduct'.
2018-12-05 16:00:38,853 884 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioWorkload'.
2018-12-05 16:00:38,853 884 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudio'.
2018-12-05 16:00:38,854 884 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2018-12-05 16:00:38,855 884 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2018-12-05 16:00:38,864 884 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2018-12-05 16:00:38,864 884 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2018-12-05 16:00:38,865 884 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2018-12-05 16:00:38,866 884 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2018-12-05 16:00:38,867 884 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2018-12-05 16:00:38,867 884 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2018-12-05 16:00:38,868 884 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2018-12-05 16:00:38,869 884 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2018-12-05 16:00:38,869 884 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2018-12-05 16:00:38,870 884 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2018-12-05 16:00:38,870 884 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2018-12-05 16:00:38,871 884 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2018-12-05 16:00:38,871 884 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2018-12-05 16:00:38,872 884 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2018-12-05 16:00:38,872 884 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2018-12-05 16:00:38,873 884 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2018-12-05 16:00:38,873 884 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2018-12-05 16:00:38,874 884 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2018-12-05 16:00:38,874 884 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2018-12-05 16:00:38,875 884 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2018-12-05 16:00:38,875 884 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2018-12-05 16:00:38,876 884 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2018-12-05 16:00:38,877 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2018-12-05 16:00:38,877 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2018-12-05 16:00:38,878 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2018-12-05 16:00:38,878 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2018-12-05 16:00:38,879 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2018-12-05 16:00:38,879 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2018-12-05 16:00:38,880 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2018-12-05 16:00:38,880 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2018-12-05 16:00:38,881 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2018-12-05 16:00:38,881 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2018-12-05 16:00:38,882 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2018-12-05 16:00:38,882 884 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2018-12-05 16:00:38,883 884 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2018-12-05 16:00:38,883 884 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2018-12-05 16:00:38,884 884 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2018-12-05 16:00:38,884 884 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2018-12-05 16:00:38,885 884 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2018-12-05 16:00:38,885 884 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2018-12-05 16:00:38,886 884 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2018-12-05 16:00:38,886 884 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2018-12-05 16:00:38,887 884 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2018-12-05 16:00:38,887 884 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2018-12-05 16:00:38,888 884 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2018-12-05 16:00:38,888 884 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2018-12-05 16:00:38,889 884 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2018-12-05 16:00:38,890 884 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2018-12-05 16:00:38,890 884 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2018-12-05 16:00:38,890 884 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2018-12-05 16:00:38,891 884 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2018-12-05 16:00:38,892 884 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2018-12-05 16:00:38,893 884 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2018-12-05 16:00:38,893 884 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2018-12-05 16:00:38,894 884 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioComponent'.
2018-12-05 16:00:38,894 884 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioWorkload'.
2018-12-05 16:00:38,895 884 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstaller'.
2018-12-05 16:00:38,895 884 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstance'.
2018-12-05 16:00:38,896 884 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudio'.
2018-12-05 16:00:38,896 884 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioInstaller'.
2018-12-05 16:00:38,897 884 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioComponent'.
2018-12-05 16:00:38,897 884 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioProduct'.
2018-12-05 16:00:38,898 884 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioWorkload'.
2018-12-05 16:00:38,898 884 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudio'.
2018-12-05 16:00:38,899 884 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2018-12-05 16:00:38,899 884 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2018-12-05 16:00:38,900 884 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChocolateyWebFileCmdlet'.
2018-12-05 16:00:38,900 884 [INFO ] - VERBOSE: Exporting cmdlet 'Get-VirusCheckValidCmdlet'.
2018-12-05 16:00:38,901 884 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebFileCmdlet'.
2018-12-05 16:00:38,901 884 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebFileNameCmdlet'.
2018-12-05 16:00:38,902 884 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebHeadersCmdlet'.
2018-12-05 16:00:38,902 884 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyInstallPackageCmdlet'.
2018-12-05 16:00:38,903 884 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPackageCmdlet'.
2018-12-05 16:00:38,903 884 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,904 884 [INFO ] - VERBOSE: Exporting cmdlet 'Invoke-ChocolateyProcessCmdlet'.
2018-12-05 16:00:38,904 884 [INFO ] - VERBOSE: Exporting cmdlet 'Start-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,905 884 [INFO ] - VERBOSE: Exporting cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,905 884 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,906 884 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2018-12-05 16:00:38,907 884 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2018-12-05 16:00:38,907 884 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2018-12-05 16:00:38,908 884 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2018-12-05 16:00:38,908 884 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2018-12-05 16:00:38,909 884 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2018-12-05 16:00:38,909 884 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2018-12-05 16:00:38,909 884 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2018-12-05 16:00:38,910 884 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2018-12-05 16:00:38,910 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyWebFileCmdlet'.
2018-12-05 16:00:38,911 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-VirusCheckValidCmdlet'.
2018-12-05 16:00:38,912 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileCmdlet'.
2018-12-05 16:00:38,912 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileNameCmdlet'.
2018-12-05 16:00:38,913 884 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebHeadersCmdlet'.
2018-12-05 16:00:38,914 884 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyInstallPackageCmdlet'.
2018-12-05 16:00:38,915 884 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPackageCmdlet'.
2018-12-05 16:00:38,916 884 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,917 884 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ChocolateyProcessCmdlet'.
2018-12-05 16:00:38,918 884 [INFO ] - VERBOSE: Importing cmdlet 'Start-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,918 884 [INFO ] - VERBOSE: Importing cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,919 884 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'.
2018-12-05 16:00:38,920 884 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioComponent'.
2018-12-05 16:00:38,920 884 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioWorkload'.
2018-12-05 16:00:38,921 884 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2018-12-05 16:00:38,922 884 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2018-12-05 16:00:38,922 884 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2018-12-05 16:00:38,923 884 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2018-12-05 16:00:38,923 884 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2018-12-05 16:00:38,924 884 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2018-12-05 16:00:38,925 884 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2018-12-05 16:00:38,925 884 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2018-12-05 16:00:38,926 884 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2018-12-05 16:00:38,927 884 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2018-12-05 16:00:38,927 884 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2018-12-05 16:00:38,928 884 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2018-12-05 16:00:38,928 884 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2018-12-05 16:00:38,929 884 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2018-12-05 16:00:38,929 884 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2018-12-05 16:00:38,930 884 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2018-12-05 16:00:38,930 884 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2018-12-05 16:00:38,931 884 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2018-12-05 16:00:38,931 884 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstaller'.
2018-12-05 16:00:38,932 884 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstance'.
2018-12-05 16:00:38,932 884 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2018-12-05 16:00:38,933 884 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2018-12-05 16:00:38,933 884 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2018-12-05 16:00:38,934 884 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2018-12-05 16:00:38,934 884 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2018-12-05 16:00:38,935 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2018-12-05 16:00:38,935 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2018-12-05 16:00:38,935 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2018-12-05 16:00:38,936 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2018-12-05 16:00:38,937 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2018-12-05 16:00:38,937 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2018-12-05 16:00:38,938 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2018-12-05 16:00:38,938 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2018-12-05 16:00:38,939 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2018-12-05 16:00:38,939 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2018-12-05 16:00:38,940 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2018-12-05 16:00:38,940 884 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2018-12-05 16:00:38,941 884 [INFO ] - VERBOSE: Importing function 'Install-VisualStudio'.
2018-12-05 16:00:38,941 884 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioInstaller'.
2018-12-05 16:00:38,942 884 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2018-12-05 16:00:38,942 884 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2018-12-05 16:00:38,943 884 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2018-12-05 16:00:38,943 884 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioComponent'.
2018-12-05 16:00:38,944 884 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioProduct'.
2018-12-05 16:00:38,944 884 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioWorkload'.
2018-12-05 16:00:38,945 884 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2018-12-05 16:00:38,945 884 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2018-12-05 16:00:38,946 884 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2018-12-05 16:00:38,946 884 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2018-12-05 16:00:38,947 884 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2018-12-05 16:00:38,947 884 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2018-12-05 16:00:38,948 884 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2018-12-05 16:00:38,948 884 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2018-12-05 16:00:38,949 884 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2018-12-05 16:00:38,949 884 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudio'.
2018-12-05 16:00:38,950 884 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2018-12-05 16:00:38,950 884 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2018-12-05 16:00:38,951 884 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2018-12-05 16:00:38,951 884 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2018-12-05 16:00:38,952 884 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2018-12-05 16:00:38,952 884 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2018-12-05 16:00:38,953 884 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2018-12-05 16:00:38,954 884 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2018-12-05 16:00:38,954 884 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2018-12-05 16:00:38,955 884 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2018-12-05 16:00:38,956 884 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2018-12-05 16:00:38,956 884 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2018-12-05 16:00:38,957 884 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2018-12-05 16:00:38,957 884 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2018-12-05 16:00:38,960 884 [DEBUG] - Running 'ChocolateyScriptRunner' for transifex-client v0.13.5 with packageScript 'C:\ProgramData\chocolatey\lib\transifex-client\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\transifex-client', installArguments: '', packageParameters: '',
2018-12-05 16:00:38,962 884 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\transifex-client\tools\chocolateyInstall.ps1'
2018-12-05 16:00:38,970 884 [DEBUG] - Running Get-ProcessorBits -compare '32' 
2018-12-05 16:00:38,977 884 [ERROR] - ERROR: Command execution stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot find path 'C:\ProgramData\chocolatey\lib\transifex-client\tools\tx-64.exe' because it does not exist.
2018-12-05 16:00:38,981 884 [DEBUG] - Built-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\transifex-client\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
2018-12-05 16:00:38,981 884 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2018-12-05 16:00:38,996 884 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2018-12-05 16:00:39,078 884 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\transifex-client'
2018-12-05 16:00:39,102 884 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\transifex-client\transifex-client.nupkg'
  with checksum 'C5CB7A61ADC8B1A738392F9F6850A91F'
2018-12-05 16:00:39,103 884 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\transifex-client\transifex-client.nuspec'
  with checksum '74B687190192E537F34DB40C5DD4A96F'
2018-12-05 16:00:39,104 884 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\transifex-client\legal\LICENSE.txt'
  with checksum '9F2C9A4AC49AACD42C96B8FF37FADE24'
2018-12-05 16:00:39,105 884 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\transifex-client\legal\VERIFICATION.txt'
  with checksum '753AB682CE1F6B20A39FFEFB37AADCD3'
2018-12-05 16:00:39,105 884 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\transifex-client\tools\chocolateyInstall.ps1'
  with checksum '8B31D59006291B1AA34EAC3A8F86881F'
2018-12-05 16:00:39,107 884 [INFO ] -  Reducing package size for 'transifex-client'...
2018-12-05 16:00:39,107 884 [DEBUG] - Attempting to create directory "c:\programdata\choco-cache\ChocolateyPackageCache\PackageCache_20181205_160039_1071".
2018-12-05 16:00:39,108 884 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib\transifex-client\transifex-client.nuspec"
 to "c:\programdata\choco-cache\ChocolateyPackageCache\PackageCache_20181205_160039_1071\transifex-client.nuspec".
2018-12-05 16:00:39,211 884 [INFO ] -  Reducing nupkg file size ('transifex-client').
2018-12-05 16:00:39,214 884 [INFO ] -  Reducing extracted archives and installers ('transifex-client').
2018-12-05 16:00:39,215 884 [INFO ] -  Space reduced for 'transifex-client': 7.15 MB.
2018-12-05 16:00:39,215 884 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\transifex-client\transifex-client.nupkg.bkp".
2018-12-05 16:00:39,218 884 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\transifex-client.0.13.5".
2018-12-05 16:00:39,218 884 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\transifex-client.0.13.5\.files'
2018-12-05 16:00:39,219 884 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\transifex-client.0.13.5\.arguments".
2018-12-05 16:00:39,220 884 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\transifex-client.0.13.5\.version".
2018-12-05 16:00:39,221 884 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\transifex-client.0.13.5\.sxs".
2018-12-05 16:00:39,221 884 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\transifex-client.0.13.5\.pin".
2018-12-05 16:00:39,222 884 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2018-12-05 16:00:39,223 884 [ERROR] - The upgrade of transifex-client was NOT successful.
2018-12-05 16:00:39,226 884 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\transifex-client\tools\chocolateyInstall.ps1'.
 See log for details.
2018-12-05 16:00:39,229 884 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\transifex-client'
 to 'C:\ProgramData\chocolatey\lib-bad\transifex-client'
2018-12-05 16:00:41,231 884 [DEBUG] - Attempting rollback
2018-12-05 16:00:41,237 884 [INFO ] -  Unsuccessful operation for transifex-client.
  Rollback to previous version (package files only)?
2018-12-05 16:00:41,238 884 [INFO ] -  1) yes
2018-12-05 16:00:41,239 884 [INFO ] -  2) no
2018-12-05 16:00:51,787 884 [INFO ] - Choice selected: 'yes'
2018-12-05 16:00:51,788 884 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib-bkp\transifex-client'
 to 'C:\ProgramData\chocolatey\lib\transifex-client'
2018-12-05 16:00:53,790 884 [DEBUG] - Attempting to delete file "C:\Users\rob\AppData\Local\NuGet\Cache\transifex-client.0.13.5.nupkg".
2018-12-05 16:00:53,806 884 [WARN ] - 
Chocolatey upgraded 2/3 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2018-12-05 16:00:53,811 884 [INFO ] - 
2018-12-05 16:00:53,814 884 [ERROR] - Failures
2018-12-05 16:00:53,817 884 [ERROR] -  - transifex-client (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\transifex-client\tools\chocolateyInstall.ps1'.
 See log for details.
2018-12-05 16:00:53,826 884 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2018-12-05 16:00:53,829 884 [DEBUG] - [Countdown] Determining how long until license expires
2018-12-05 16:00:55,351 884 [DEBUG] - Exiting with -1

@ferventcoder ferventcoder changed the title On upgrade, Chocolatey should remove automation scripts even if changed upgrade - remove automation scripts prior to upgrade even if changed Dec 5, 2018
@ferventcoder ferventcoder self-assigned this Dec 5, 2018
@ferventcoder ferventcoder added this to the 0.10.12 milestone Dec 5, 2018
@ferventcoder
Copy link
Member Author

On upgrade, the script was not replaced. This is because the script in the nupkg was removed during install/upgrade with Package Reducer turned on and therefore the nuget uninstallation that would have pulled it doesn't see it for detection and removal. So it does need to be handled as part of the upgrade steps in choco.

@ferventcoder ferventcoder changed the title upgrade - remove automation scripts prior to upgrade even if changed upgrade - remove automation scripts prior to upgrade even if changed Dec 5, 2018
gep13 added a commit to gep13/choco that referenced this issue Mar 12, 2019
It is possible, due to the way that Package Reducer works, that there
are extra files left in the package directory when doing an upgrade
of a package.  This can cause a package upgrade to fail.  Prior to
performing the upgrade, delete all packaging scripts (chocolateyInstall,
chocolateyUninstall, and chocolateyBeforeModify) from the package
folder, these will then be replaced during the upgrade, if they are
still required..
gep13 added a commit to gep13/choco that referenced this issue Mar 13, 2019
It is possible, due to the way that Package Reducer works, that there
are extra files left in the package directory when doing an upgrade
of a package.  This can cause a package upgrade to fail.  Prior to
performing the upgrade, delete all packaging scripts (chocolateyInstall,
chocolateyUninstall, and chocolateyBeforeModify) from the package
folder, these will then be replaced during the upgrade, if they are
still required..
ferventcoder pushed a commit that referenced this issue Mar 13, 2019
It is possible, due to the way that Package Reducer works, that there
are extra files left in the package directory when doing an upgrade
of a package.  This can cause a package upgrade to fail.  Prior to
performing the upgrade, delete all packaging scripts (chocolateyInstall,
chocolateyUninstall, and chocolateyBeforeModify) from the package
folder, these will then be replaced during the upgrade, if they are
still required..
ferventcoder added a commit that referenced this issue Mar 13, 2019
* pr1751:
  (maint) Corrected whitespace
  (GH-1689) Delete packaging scripts before upgrade
ferventcoder added a commit that referenced this issue Mar 13, 2019
* stable:
  (maint) Corrected whitespace
  (GH-1689) Delete packaging scripts before upgrade
  (doc) fix grammar in scripting guidelines
  (doc) add don't use nupkg to scripting guidelines
  (maint) fix typo
  (GH-1602) exit 2 on items outdated
  (doc) add step for rebasing prior to merging
  (GH-1614) Quote source name if includes pipe
@ferventcoder
Copy link
Member Author

This has been completed and will be released with Chocolatey v0.10.12.

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

No branches or pull requests

2 participants