Closed chtof closed 3 years ago
Well, I close this pull request as the update works properly on another computer. So, I think "GitHubDesktopSetup.exe" come from a previous version. So probably users impacted by this isue should remove this old GitHubDesktopSetup.exe in C:\ProgramData\chocolatey\lib\github-desktop.2.8.2\tools (to be tested). Another way should to change chocolateyinstall.ps1 to remove GitHubDesktopSetup.exe at the beginning of the script.
Github Desktop installer provides now 2 installer, one for 32 bits system GitHubDesktopSetup.exe and another for 64 bits system GitHubDesktopSetup-x64.exe So, file = (Get-Childitem -Path $toolsDir -Filter "*.exe").fullname does not longer work as it returns now 2 files and "file" argument expects only one.
My suggestion here is to add the filenames for 32 and 64 bits system: file = "$toolsDir\GitHubDesktopSetup.exe" file64 = "$toolsDir\GitHubDesktopSetup-x64.exe"
It allows me to upgrade Github Desktop on my Windows 10 64 bits.