TakataSanshiro / Chocolatey-Packages

Some packages that can be installed via chocolatey.org
MIT License
15 stars 29 forks source link

github-desktop won't upgrade since version 2.8.0 #77

Closed lucknaumann closed 3 years ago

lucknaumann commented 3 years ago

STILL cannot upgrade from 2.7.2. to version any version from 2.8.0-2.8.3. STILL same error message as the others (on Chocolatey's github-desktop package page):

ERROR: Cannot process argument transformation on parameter 'file'. Cannot convert value to type System.String.
The upgrade of github-desktop was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\github-desktop\tools\chocolateyinstall.ps1'.
 See log for details.

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

Failures
 - github-desktop (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\github-desktop\tools\chocolateyinstall.ps1'.
 See log for details.

LOG OUTPUT:

2021-06-06 16:26:40,137 29452 [DEBUG] - ---------------------------Script Execution---------------------------
2021-06-06 16:26:40,138 29452 [DEBUG] - Running 'ChocolateyScriptRunner' for github-desktop v2.8.3 with packageScript 'C:\ProgramData\chocolatey\lib\github-desktop\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\github-desktop', installArguments: '', packageParameters: '',
2021-06-06 16:26:40,145 29452 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\github-desktop\tools\chocolateyinstall.ps1'
2021-06-06 16:26:41,371 29452 [INFO ] - PRE-INSTALLATION CHECKS:
2021-06-06 16:26:49,447 29452 [INFO ] -   * WARNING: Pending reboot found.
2021-06-06 16:26:49,847 29452 [INFO ] -   * Windows Installer IS NOT currently running
2021-06-06 16:26:49,860 29452 [INFO ] - VERBOSE: Current Process: 29452
2021-06-06 16:26:55,743 29452 [INFO ] - VERBOSE: Searching for choco.exe process
2021-06-06 16:26:56,718 29452 [INFO ] - VERBOSE: 2072: `"C:\PROGRA~3\chocolatey\bin\choco.exe" upgrade github-desktop -y` --> 5896: `"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -nologo`
2021-06-06 16:26:56,720 29452 [INFO ] - VERBOSE: 2072 is probably a shim of choco.exe
2021-06-06 16:26:57,121 29452 [INFO ] - VERBOSE: 29452: `"C:\ProgramData\chocolatey\choco.exe" upgrade github-desktop -y` --> 2072: `"C:\PROGRA~3\chocolatey\bin\choco.exe" upgrade github-desktop -y`
2021-06-06 16:26:57,122 29452 [INFO ] - VERBOSE: 29452 is actual choco process
2021-06-06 16:26:57,124 29452 [INFO ] - VERBOSE: choco.exe instance count is 1
2021-06-06 16:26:57,125 29452 [INFO ] -   * choco.exe IS NOT running multiple instances.
2021-06-06 16:26:58,100 29452 [ERROR] - ERROR: Cannot process argument transformation on parameter 'file'. Cannot convert value to type System.String.
2021-06-06 16:26:58,103 29452 [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\github-desktop\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
2021-06-06 16:26:58,105 29452 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
2021-06-06 16:26:59,461 29452 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'
2021-06-06 16:26:59,918 29452 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\github-desktop'
2021-06-06 16:27:00,230 29452 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\github-desktop\github-desktop.nupkg'
  with checksum 'F1F07227BD507D556E7CF9603BF3491D'
2021-06-06 16:27:00,231 29452 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\github-desktop\github-desktop.nuspec'
  with checksum '0EE6B9717E6CB3AABA042713A93B48B6'
2021-06-06 16:27:00,231 29452 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\github-desktop\tools\chocolateyinstall.ps1'
  with checksum 'EA3D6CBE1A0870A6594BC73D82114321'
2021-06-06 16:27:00,232 29452 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\github-desktop\tools\chocolateyuninstall.ps1'
  with checksum 'C46C78F175387E75ED6086658CF01ADC'
2021-06-06 16:27:00,578 29452 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\github-desktop\tools\GitHubDesktopSetup-x64.exe'
  with checksum '158D12B2DA7384F342833A5B32ED34B9'
2021-06-06 16:27:02,023 29452 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\github-desktop\tools\GitHubDesktopSetup.exe'
  with checksum 'A31668CCAEB1B125D0253A354A02D5FB'
2021-06-06 16:27:02,024 29452 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\github-desktop\tools\LICENSE.txt'
  with checksum '60B0A6AB92552C53DB99222492DC0682'
2021-06-06 16:27:02,024 29452 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\github-desktop\tools\VERIFICATION.txt'
  with checksum '457A00C4ADA4E01625536D9859486AAC'
2021-06-06 16:27:02,400 29452 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\github-desktop.2.8.3".
2021-06-06 16:27:02,405 29452 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\github-desktop.2.8.3\.files'
2021-06-06 16:27:02,406 29452 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\github-desktop.2.8.3\.arguments".
2021-06-06 16:27:02,407 29452 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\github-desktop.2.8.3\.extra".
2021-06-06 16:27:02,407 29452 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\github-desktop.2.8.3\.version".
2021-06-06 16:27:02,408 29452 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\github-desktop.2.8.3\.sxs".
2021-06-06 16:27:02,408 29452 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\github-desktop.2.8.3\.pin".
2021-06-06 16:27:02,413 29452 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\github-desktop".
2021-06-06 16:27:02,653 29452 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2021-06-06 16:27:02,655 29452 [ERROR] - The upgrade of github-desktop was NOT successful.
2021-06-06 16:27:02,657 29452 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\github-desktop\tools\chocolateyinstall.ps1'.
 See log for details.
2021-06-06 16:27:02,659 29452 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\github-desktop'
 to 'C:\ProgramData\chocolatey\lib-bad\github-desktop'
2021-06-06 16:27:04,675 29452 [DEBUG] - Attempting rollback
2021-06-06 16:27:04,675 29452 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib-bkp\github-desktop'
 to 'C:\ProgramData\chocolatey\lib\github-desktop'
2021-06-06 16:27:06,691 29452 [DEBUG] - Attempting to delete file "C:\Users\USERNAME\AppData\Local\NuGet\Cache\github-desktop.2.8.3.nupkg".
2021-06-06 16:27:06,712 29452 [WARN ] - 
Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2021-06-06 16:27:06,713 29452 [INFO ] - 
2021-06-06 16:27:06,715 29452 [ERROR] - Failures
2021-06-06 16:27:06,716 29452 [ERROR] -  - github-desktop (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\github-desktop\tools\chocolateyinstall.ps1'.
 See log for details.
2021-06-06 16:27:06,718 29452 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2021-06-06 16:27:06,735 29452 [DEBUG] - Exiting with -1
TakataSanshiro commented 3 years ago

Thanks for your log. I tried to reproduce the issue, but there was no error occurred.

cuninst -y github-desktop cinst -y github-desktop --version 2.7.2 close the launched application. choco upgrade -y github-desktop --version 2.8.0 The upgrade of github-desktop was successful.

And the upgrading from 2.7.2 to 2.8.1, 2.7.2 to 2.8.2, 2.7.2 to 2.8.3 were also successful.

Perhaps, multiple installers here cause of something. Try to delete any .exe files on C:\%ChocolateyInstall%\lib\github-desktop\tools and then upgrade it.

lucknaumann commented 3 years ago

Thank you for responding. I deleted everything in the tools folder just because. The .exe in there was 2.8.3. Anyway, that indeed did it. It did upgrade without issue. Also, just for technicality's sake, it's actually C:\ C:\%ChocolateyInstall%\lib\github-desktop\tools. šŸ˜„

TakataSanshiro commented 3 years ago

šŸ˜„