chocolatey-community / chocolatey-packages

Chocolatey Community Maintainers Team Packages - packages that are managed and maintained by core community team for community package repository (https://community.chocolatey.org/packages)
https://community.chocolatey.org/profiles/chocolatey-community
Apache License 2.0
447 stars 383 forks source link

(git.install) "ERROR: Cannot process argument transformation on parameter 'file64'. Cannot convert value to type System.String." #1351

Closed jpluimers closed 5 years ago

jpluimers commented 5 years ago

Chocolatey v0.10.15 on Windows 7 Professional; version 6.1.7601.65536 upgrading to git.install 2.23.0: "ERROR: Cannot process argument transformation on parameter 'file64'. Cannot convert value to type System.String."

Related issue https://github.com/chocolatey-community/chocolatey-coreteampackages/issues/574 was resolved with the current chocolatey version I am using.

Expected Behavior

Install without error.

Current Behavior

Install with this error:

You have git.install v2.22.0 installed. Version 2.23.0 is available based on your source(s).
Progress: Downloading git.install 2.23.0... 100%

git.install v2.23.0 [Approved]
git.install package files upgrade completed. Performing other installation steps
.
Using Git LFS
ERROR: Cannot process argument transformation on parameter 'file64'. Cannot convert value to type System.String.
The upgrade of git.install was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1'.
 See log for details.

Additional log information at the bottom of this issue. Full log at https://gist.github.com/jpluimers/4ef698d8571276fc46bbe3949f85817a

Possible Solution

N/A

Steps to Reproduce (for bugs)

On this particular system (no other Windows 7 systems left to test on):

  1. choco upgrade all --yes

Context

Trying to upgrade all packages using "C:\ProgramData\chocolatey\choco.exe" upgrade all --yes

Your Environment

Additional verbose log information

Excerpts from C:\ProgramData\chocolatey\logs\chocolatey.log:

2019-10-02 22:41:10,230 3908 [DEBUG] - XmlConfiguration is now operational
2019-10-02 22:41:10,336 3908 [INFO ] - ============================================================
2019-10-02 22:41:19,187 3908 [DEBUG] - Attempting to create directory "C:\Users\jeroenp\AppData\Local\Temp\chocolatey".
2019-10-02 22:41:19,262 3908 [INFO ] - Chocolatey v0.10.15
2019-10-02 22:41:19,272 3908 [DEBUG] - Chocolatey is running on Windows v 6.1.7601.65536
2019-10-02 22:41:19,275 3908 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2019-10-02 22:41:19,275 3908 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2019-10-02 22:41:19,299 3908 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" upgrade all --yes
2019-10-02 22:41:19,300 3908 [DEBUG] - Received arguments: upgrade all --yes
2019-10-02 22:41:19,885 3908 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2019-10-02 22:41:19,903 3908 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2019-10-02 22:41:20,786 3908 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2019-10-02 22:41:24,782 3908 [DEBUG] - Performing validation checks.
2019-10-02 22:41:24,791 3908 [DEBUG] - Global Configuration Validation Checks:
2019-10-02 22:41:24,792 3908 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2019-10-02 22:41:24,794 3908 [DEBUG] - System State Validation Checks:
2019-10-02 22:41:24,796 3908 [DEBUG] -  Reboot Requirement Checks:
2019-10-02 22:41:24,798 3908 [DEBUG] -  - Pending Computer Rename = Checked
2019-10-02 22:41:24,800 3908 [DEBUG] -  - Pending Component Based Servicing = Checked
2019-10-02 22:41:24,801 3908 [DEBUG] -  - Pending Windows Auto Update = Checked
2019-10-02 22:41:24,802 3908 [DEBUG] -  - Pending File Rename Operations = Checked
2019-10-02 22:41:24,804 3908 [DEBUG] -  - Pending Windows Package Installer = Checked
2019-10-02 22:41:24,805 3908 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2019-10-02 22:41:24,809 3908 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
...
2019-10-02 22:45:49,777 3908 [DEBUG] - Using 'https://chocolatey.org/api/v2/'.
2019-10-02 22:45:49,777 3908 [DEBUG] - - Supports prereleases? 'True'.
2019-10-02 22:45:49,777 3908 [DEBUG] - - Is ServiceBased? 'True'.
2019-10-02 22:45:49,792 3908 [DEBUG] - Package 'git.install' found on source 'https://chocolatey.org/api/v2/'
2019-10-02 22:45:49,792 3908 [WARN ] - 
You have git.install v2.22.0 installed. Version 2.23.0 is available based on your source(s).
2019-10-02 22:45:49,792 3908 [DEBUG] - Backing up existing git.install prior to operation.
2019-10-02 22:45:49,792 3908 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\git.install'
 to 'C:\ProgramData\chocolatey\lib-bkp\git.install'
2019-10-02 22:45:51,792 3908 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\git.install".
2019-10-02 22:45:51,792 3908 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\git.install\git.install.nupkg"
 to "C:\ProgramData\chocolatey\lib\git.install\git.install.nupkg".
2019-10-02 22:45:51,792 3908 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\git.install\git.install.nuspec"
 to "C:\ProgramData\chocolatey\lib\git.install\git.install.nuspec".
2019-10-02 22:45:51,792 3908 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\git.install\legal".
2019-10-02 22:45:51,792 3908 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\git.install\legal\LICENSE.txt"
 to "C:\ProgramData\chocolatey\lib\git.install\legal\LICENSE.txt".
2019-10-02 22:45:51,792 3908 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\git.install\legal\VERIFICATION.txt"
 to "C:\ProgramData\chocolatey\lib\git.install\legal\VERIFICATION.txt".
2019-10-02 22:45:51,792 3908 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\git.install\tools".
2019-10-02 22:45:51,792 3908 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\git.install\tools\chocolateyInstall.ps1"
 to "C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1".
2019-10-02 22:45:51,792 3908 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\git.install\tools\Git-2.22.0-32-bit.exe"
 to "C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.22.0-32-bit.exe".
2019-10-02 22:45:51,949 3908 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\git.install\tools\Git-2.22.0-64-bit.exe"
 to "C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.22.0-64-bit.exe".
2019-10-02 22:45:52,105 3908 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\git.install\tools\Git-2.22.0-64-bit.exe.ignore"
 to "C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.22.0-64-bit.exe.ignore".
2019-10-02 22:45:52,105 3908 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\git.install\tools\helpers.ps1"
 to "C:\ProgramData\chocolatey\lib\git.install\tools\helpers.ps1".
2019-10-02 22:45:53,621 3908 [DEBUG] - Deleting file C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1
2019-10-02 22:45:53,621 3908 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1".
2019-10-02 22:45:53,621 3908 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\git.install'
2019-10-02 22:45:53,621 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\git.install.nupkg'
  with checksum '53A5B67CB8670E7A905BD1724DB224DB'
2019-10-02 22:45:53,621 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\git.install.nuspec'
  with checksum 'BABEC1AE182DAC1F934A908442CF585E'
2019-10-02 22:45:53,621 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\legal\LICENSE.txt'
  with checksum '147AC7E5E6DAA60704C926873D2C066D'
2019-10-02 22:45:53,621 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\legal\VERIFICATION.txt'
  with checksum 'BA84A1FA153CD0F5E93F39D69B2E0C09'
2019-10-02 22:45:53,871 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.22.0-32-bit.exe'
  with checksum '794EF9AA3F5A3C7E155C229C881F8507'
2019-10-02 22:45:54,152 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.22.0-64-bit.exe'
  with checksum '4675FE99320AC42BBFBDE07E70890563'
2019-10-02 22:45:54,152 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.22.0-64-bit.exe.ignore'
  with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
2019-10-02 22:45:54,152 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\tools\helpers.ps1'
  with checksum '6CF4C0CF17B0B0B63A8116B12BC0931A'
2019-10-02 22:45:54,152 3908 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.22.0-64-bit.exe.ignore".
2019-10-02 22:45:54,339 3908 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey-core.extension (= 1.3.3)'.
2019-10-02 22:46:03,746 3908 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey (= 0.10.7)'.
2019-10-02 22:46:03,746 3908 [INFO ] - [NuGet] Uninstalling 'git.install 2.22.0'.
2019-10-02 22:46:03,761 3908 [DEBUG] - [NuGet] Removed file 'LICENSE.txt' to folder 'C:\ProgramData\chocolatey\lib\git.install\legal'.
2019-10-02 22:46:03,761 3908 [DEBUG] - [NuGet] Removed file 'VERIFICATION.txt' to folder 'C:\ProgramData\chocolatey\lib\git.install\legal'.
2019-10-02 22:46:03,761 3908 [DEBUG] - [NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\git.install\legal'.
2019-10-02 22:46:03,761 3908 [DEBUG] - [NuGet] Removed file 'helpers.ps1' to folder 'C:\ProgramData\chocolatey\lib\git.install\tools'.
2019-10-02 22:46:03,761 3908 [DEBUG] - [NuGet] Removed file 'git.install.nuspec' to folder 'C:\ProgramData\chocolatey\lib\git.install'.
2019-10-02 22:46:03,761 3908 [DEBUG] - [NuGet] Removed file 'git.install.nupkg' to folder 'C:\ProgramData\chocolatey\lib\git.install'.
2019-10-02 22:46:03,761 3908 [DEBUG] - [NuGet] The directory is not empty.

2019-10-02 22:46:03,761 3908 [INFO ] - [NuGet] Successfully uninstalled 'git.install 2.22.0'.
2019-10-02 22:46:03,761 3908 [INFO ] - [NuGet] Installing 'git.install 2.23.0'.
2019-10-02 22:46:03,761 3908 [DEBUG] - [NuGet] Added file 'LICENSE.txt' to folder 'git.install\legal'.
2019-10-02 22:46:03,761 3908 [DEBUG] - [NuGet] Added file 'VERIFICATION.txt' to folder 'git.install\legal'.
2019-10-02 22:46:03,761 3908 [DEBUG] - [NuGet] Added file 'chocolateyInstall.ps1' to folder 'git.install\tools'.
2019-10-02 22:46:03,824 3908 [DEBUG] - [NuGet] Added file 'Git-2.23.0-32-bit.exe' to folder 'git.install\tools'.
2019-10-02 22:46:03,886 3908 [DEBUG] - [NuGet] Added file 'Git-2.23.0-64-bit.exe' to folder 'git.install\tools'.
2019-10-02 22:46:03,886 3908 [DEBUG] - [NuGet] Added file 'helpers.ps1' to folder 'git.install\tools'.
2019-10-02 22:46:03,996 3908 [DEBUG] - [NuGet] Added file 'git.install.nupkg' to folder 'git.install'.
2019-10-02 22:46:04,230 3908 [DEBUG] - [NuGet] Added file 'git.install.nuspec' to folder 'git.install'.
2019-10-02 22:46:04,230 3908 [INFO ] - [NuGet] Successfully installed 'git.install 2.23.0'.
2019-10-02 22:46:04,230 3908 [INFO ] - 
git.install v2.23.0 [Approved]
2019-10-02 22:46:04,230 3908 [INFO ] - git.install package files upgrade completed. Performing other installation steps.
2019-10-02 22:46:04,246 3908 [DEBUG] - Setting installer args for git.install
2019-10-02 22:46:04,246 3908 [DEBUG] - Setting package parameters for git.install
2019-10-02 22:46:04,246 3908 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1':
2019-10-02 22:46:04,246 3908 [DEBUG] - $ErrorActionPreference = 'Stop'

$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
. $toolsPath\helpers.ps1

$pp = Get-PackageParameters
Set-InstallerRegistrySettings $pp

Stop-GitSSHAgent

$packageArgs = @{
    PackageName    = 'git.install'
    FileType       = 'exe'
    SoftwareName   = 'Git version *'
    File           = Get-Item $toolsPath\*-32-bit.exe
    File64         = Get-Item $toolsPath\*-64-bit.exe
    SilentArgs     = "/VERYSILENT", "/SUPPRESSMSGBOXES", "/NORESTART", "/NOCANCEL", "/SP-", "/LOG", (Get-InstallComponents $pp)
}
Install-ChocolateyInstallPackage @packageArgs

$packageName = $packageArgs.packageName
$installLocation = Get-AppInstallLocation $packageArgs.SoftwareName
if (!$installLocation)  { Write-Warning "Can't find $packageName install location"; return }
Write-Host "$packageName installed to '$installLocation'"

Get-ChildItem $toolsPath\*.exe | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { Set-Content "$_.ignore" '' } }

if ($pp.NoCredentialManager) {
    Write-Host "Git credential manager will be disabled."
    Install-ChocolateyEnvironmentVariable GCM_VALIDATE 'false'
}
2019-10-02 22:46:04,246 3908 [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\git.install\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''']
2019-10-02 22:46:04,261 3908 [DEBUG] - Redirecting Microsoft.WSMan.Management.resources, Version=1.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2019-10-02 22:46:04,355 3908 [DEBUG] - Host version is 2.0, PowerShell Version is '2.0' and CLR Version is '4.0.30319.42000'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-10-02 22:46:04,527 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-10-02 22:46:04,542 3908 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-10-02 22:46:04,558 3908 [DEBUG] - Loading community extensions
2019-10-02 22:46:04,558 3908 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2019-10-02 22:46:04,558 3908 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2019-10-02 22:46:04,605 3908 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'
2019-10-02 22:46:04,605 3908 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'.
2019-10-02 22:46:04,667 3908 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2019-10-02 22:46:04,667 3908 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2019-10-02 22:46:04,683 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2019-10-02 22:46:04,699 3908 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2019-10-02 22:46:04,714 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2019-10-02 22:46:04,730 3908 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2019-10-02 22:46:04,746 3908 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2019-10-02 22:46:04,746 3908 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2019-10-02 22:46:04,746 3908 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2019-10-02 22:46:04,746 3908 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2019-10-02 22:46:04,746 3908 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2019-10-02 22:46:04,746 3908 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2019-10-02 22:46:04,746 3908 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2019-10-02 22:46:04,746 3908 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2019-10-02 22:46:04,746 3908 [DEBUG] - ---------------------------Script Execution---------------------------
2019-10-02 22:46:04,746 3908 [DEBUG] - Running 'ChocolateyScriptRunner' for git.install v2.23.0 with packageScript 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\git.install', installArguments: '', packageParameters: '',
2019-10-02 22:46:04,761 3908 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1'
2019-10-02 22:46:04,761 3908 [DEBUG] - Running Get-PackageParameters 
2019-10-02 22:46:04,761 3908 [DEBUG] - Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
2019-10-02 22:46:04,761 3908 [DEBUG] - Running Get-OSArchitectureWidth -compare '64' 
2019-10-02 22:46:04,824 3908 [INFO ] - Using Git LFS
2019-10-02 22:46:04,824 3908 [INFO ] - 
2019-10-02 22:46:04,839 3908 [ERROR] - ERROR: Cannot process argument transformation on parameter 'file64'. Cannot convert value to type System.String.
2019-10-02 22:46:04,839 3908 [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\git.install\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
2019-10-02 22:46:04,839 3908 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2019-10-02 22:46:04,855 3908 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2019-10-02 22:46:04,871 3908 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\git.install'
2019-10-02 22:46:05,355 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\git.install.nupkg'
  with checksum 'B715136EAC07BF84FE6C485867723799'
2019-10-02 22:46:05,355 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\git.install.nuspec'
  with checksum '2494956F5007DA8424952FA83C1B96BD'
2019-10-02 22:46:05,355 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\legal\LICENSE.txt'
  with checksum '147AC7E5E6DAA60704C926873D2C066D'
2019-10-02 22:46:05,355 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\legal\VERIFICATION.txt'
  with checksum '1C41A06D8D936DCAF055E295EFECEB74'
2019-10-02 22:46:05,355 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1'
  with checksum 'DA6406AAC063EAAF1982ABCAD0964CED'
2019-10-02 22:46:05,746 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.22.0-32-bit.exe'
  with checksum '794EF9AA3F5A3C7E155C229C881F8507'
2019-10-02 22:46:06,011 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.22.0-64-bit.exe'
  with checksum '4675FE99320AC42BBFBDE07E70890563'
2019-10-02 22:46:06,261 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.23.0-32-bit.exe'
  with checksum 'EE791A082E9FF4F3E9A6EFF278447C0C'
2019-10-02 22:46:06,511 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\tools\Git-2.23.0-64-bit.exe'
  with checksum '0989D1F4E4B6E50275C851BC61559109'
2019-10-02 22:46:06,511 3908 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\git.install\tools\helpers.ps1'
  with checksum '6CF4C0CF17B0B0B63A8116B12BC0931A'
2019-10-02 22:46:06,511 3908 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\git.install.2.23.0".
2019-10-02 22:46:06,511 3908 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\git.install.2.23.0\.files'
2019-10-02 22:46:06,511 3908 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\git.install.2.23.0\.arguments".
2019-10-02 22:46:06,511 3908 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\git.install.2.23.0\.extra".
2019-10-02 22:46:06,511 3908 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\git.install.2.23.0\.version".
2019-10-02 22:46:06,527 3908 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\git.install.2.23.0\.sxs".
2019-10-02 22:46:06,527 3908 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\git.install.2.23.0\.pin".
2019-10-02 22:46:06,527 3908 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2019-10-02 22:46:06,527 3908 [ERROR] - The upgrade of git.install was NOT successful.
2019-10-02 22:46:06,527 3908 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1'.
 See log for details.
2019-10-02 22:46:06,527 3908 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad".
2019-10-02 22:46:06,527 3908 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\git.install'
 to 'C:\ProgramData\chocolatey\lib-bad\git.install'
2019-10-02 22:46:08,527 3908 [DEBUG] - Attempting rollback
2019-10-02 22:46:08,527 3908 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib-bkp\git.install'
 to 'C:\ProgramData\chocolatey\lib\git.install'
2019-10-02 22:46:10,527 3908 [DEBUG] - Attempting to delete file "C:\Users\jeroenp\AppData\Local\NuGet\Cache\git.install.2.23.0.nupkg".
...
2019-10-02 22:49:50,246 3908 [ERROR] - Failures
2019-10-02 22:49:50,246 3908 [ERROR] -  - git.install (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1'.
 See log for details.
AdmiringWorm commented 5 years ago

I have been trying for a while now, but unfortunately I am unable to reproduce the issue that you are seeing.

As such I am afraid I really don't know what can be done to fix your issue unfortunately.

AdmiringWorm commented 5 years ago

One thing I need you to check for me (I don't think that is the problem, but better safe than sorry).

If you navigate to %ChocolateyInstall%\lib-bad\git.install\tools, do you see multiple x64 installers there? I am thinking that perhaps there is a left-over executable from when you installed version 2.22.0 which may explain the issue.

jpluimers commented 5 years ago

Thanks @AdmiringWorm, nail on the head, though it did not resolve the problem, as cleaning, then upgrading gets back the files.

Below is what I did.

Is it possible to get a more verbose log of the git upgrade process?

C:\bin\bin>dir %ChocolateyInstall%\lib-bad\git.install\tools
 Volume in drive C is WIN7_DELPHI_SQL
 Volume Serial Number is D0E5-A8EE

 Directory of C:\ProgramData\chocolatey\lib-bad\git.install\tools

10/04/2019  05:22 PM    <DIR>          .
10/04/2019  05:22 PM    <DIR>          ..
10/04/2019  05:22 PM             1,171 chocolateyInstall.ps1
06/09/2019  11:41 AM        46,908,040 Git-2.22.0-32-bit.exe
06/09/2019  11:41 AM        47,087,448 Git-2.22.0-64-bit.exe
10/04/2019  05:22 PM        47,455,080 Git-2.23.0-32-bit.exe
10/04/2019  05:22 PM        47,701,816 Git-2.23.0-64-bit.exe
10/04/2019  05:22 PM             2,871 helpers.ps1
               6 File(s)    189,156,426 bytes
               2 Dir(s)   2,683,338,752 bytes free

Choco-cleaner cleaned this:

C:\bin\bin>call C:\ProgramData\chocolatey\lib\choco-cleaner\tools\choco-cleaner-manual.bat
Choco-Cleaner.ps1 v0.0.5.2 (01/09/2019) - deletes unnecessary residual Chocolatey files to free up disk space
Copyleft 2017-2019 Bill Curran (bcurran3@yahoo.com) - free for personal and commercial use
Choco-Cleaner Summary:
  **  Deleting unnecessary Chocolatey _processed.txt (WTF?) file...
  **  Deleting unnecessary Chocolatey .ignore files...
  **  Deleting unnecessary Chocolatey .old files...
  **  Deleting unnecessary Chocolatey cache files...
  **  Deleting unnecessary Chocolatey config backup files...
  **  Deleting unnecessary Chocolatey lib-bad package files...
  **  Deleting unnecessary Chocolatey lib-bkp package files...
  **  Deleting unnecessary Chocolatey extracted file logs...
  **  Deleting unnecessary Chocolatey log files...
  **  Deleting unnecessary Chocolatey package embedded archive files in toolsDir...
  **  Deleting unnecessary Chocolatey package embedded archives and executables in .nupkg files...
  **  Deleting unnecessary Chocolatey package embedded license files...
  **  Deleting unnecessary Chocolatey package embedded Microsoft installers...
  **  Deleting unnecessary Chocolatey package embedded various read me files...
  **  Deleting unnecessary Nuget cache files...
Choco-Cleaner finished deleting unnecessary Chocolatey files and saved you 604,192 KB!
Found Choco-Cleaner.ps1 useful?
Buy me a beer at https://www.paypal.me/bcurran3donations
Become a patron at https://www.patreon.com/bcurran3
C:\bin\bin>dir %ChocolateyInstall%\lib-bad\git.install\tools
The system cannot find the path specified.

But then upgrading downloaded all the installers again:

C:\bin\bin>choco upgrade all --yes
Chocolatey v0.10.15
2 validations performed. 1 success(es), 1 warning(s), and 0 error(s).

Validation Warnings:
 - A pending system reboot request has been detected, however, this is
   being ignored due to the current Chocolatey configuration.  If you
   want to halt when this occurs, then either set the global feature
   using:
     choco feature enable -name=exitOnRebootDetected
   or pass the option --exit-when-reboot-detected.

Upgrading the following packages:
all
By upgrading you accept licenses for the packages.
7zip v19.0 is the latest version available based on your source(s).
7zip.install v19.0 is the latest version available based on your source(s).
beyondcompare v4.2.10.23938 is the latest version available based on your source(s).
choco-cleaner v0.0.5.2 is the latest version available based on your source(s).
chocolatey v0.10.15 is the latest version available based on your source(s).
chocolatey-core.extension v1.3.3 is the latest version available based on your source(s).
chocolatey-dotnetfx.extension v1.0.1 is newer than the most recent.
 You must be smarter than the average bear...
curl v7.66.0.20190926 is the latest version available based on your source(s).
dotnet4.7.1 v4.7.2558.20190226 is the latest version available based on your sou
rce(s).
dotnetfx v4.8.0.20190930 is the latest version available based on your source(s).
Everything v1.4.1935.20190602 is the latest version available based on your source(s).

You have git.install v2.22.0 installed. Version 2.23.0 is available based on your source(s).
Progress: Downloading git.install 2.23.0... 100%

git.install v2.23.0 [Approved]
git.install package files upgrade completed. Performing other installation steps
.
Using Git LFS
ERROR: Cannot process argument transformation on parameter 'file64'. Cannot convert value to type System.String.
The upgrade of git.install was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1'.
 See log for details.
hg v5.1.2 is the latest version available based on your source(s).
KB2919355 v1.0.20160915 is the latest version available based on your source(s).
KB2919442 v1.0.20160915 is the latest version available based on your source(s).
nircmd v2.86 is the latest version available based on your source(s).
notepadplusplus v7.7.1 is the latest version available based on your source(s).
notepadplusplus.install v7.7.1 is the latest version available based on your source(s).
sed v4.7 is the latest version available based on your source(s).
sourcetree v3.2.6 is the latest version available based on your source(s).
sysinternals v2019.9.23 is the latest version available based on your source(s).
vmware-tools v11.0.0.14549434 is the latest version available based on your source(s).

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

Failures
 - git.install (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1'.
 See log for details.

C:\bin\bin>dir %ChocolateyInstall%\lib-bad\git.install\tools
 Volume in drive C is WIN7_DELPHI_SQL
 Volume Serial Number is D0E5-A8EE

 Directory of C:\ProgramData\chocolatey\lib-bad\git.install\tools

10/04/2019  05:28 PM    <DIR>          .
10/04/2019  05:28 PM    <DIR>          ..
10/04/2019  05:28 PM             1,171 chocolateyInstall.ps1
06/09/2019  11:41 AM        46,908,040 Git-2.22.0-32-bit.exe
06/09/2019  11:41 AM        47,087,448 Git-2.22.0-64-bit.exe
10/04/2019  05:28 PM        47,455,080 Git-2.23.0-32-bit.exe
10/04/2019  05:28 PM        47,701,816 Git-2.23.0-64-bit.exe
10/04/2019  05:28 PM             2,871 helpers.ps1
               6 File(s)    189,156,426 bytes
               2 Dir(s)   2,530,492,416 bytes free
majkinetor commented 5 years ago

OK, this is my mistake as I am the author of such git.install code. This wouldn't happen if git installer weren't using globs but complete file name as @AdmiringWorm insisted multiple times. This is not normal situation, it shouldn't happen that old installers are left out but it happens relativelly frequentlly so we need to have a new solution here.

Another solution, besides what @AdmiringWorm uses, maybe even better one, would be to just delete older files except the latest one:

# There might be older files
ls $toolsPath\*.exe | sort LastWriteTime  -Descending | select -skip 1 | rm

$packageArgs = @{
    PackageName    = 'git.install'
    FileType       = 'exe'
    SoftwareName   = 'Git version *'
    File           = Get-Item $toolsPath\*-32-bit.exe
    File64         = Get-Item $toolsPath\*-64-bit.exe
    SilentArgs     = "/VERYSILENT", "/SUPPRESSMSGBOXES", "/NORESTART", "/NOCANCEL", "/SP-", "/LOG", (Get-InstallComponents $pp)
}
Install-ChocolateyInstallPackage @packageArgs
Get-ChildItem $toolsPath\*.exe | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { Set-Content "$_.ignore" '' } }

This one is IMO better as

Or we could use full file name.

majkinetor commented 5 years ago

OK, this wont happen any more with this package (after next official update).