Closed caglaryalcin closed 2 weeks ago
WinGet has its own logical order for determining which installer to use for a given package.
The assumption here is the package is not currently installed on the device. If all installer types are available, the preference is:
If you run winget show GitHub.GitHubDesktop
WinGet will show the URL it would default to for an install.
To override the installer type you can pass "--installer-type" as a parameter with the preferred type.
You can run winget show GitHub.GitHubDesktop --installer-type exe
to see the difference.
To get the .exe based version, you would run winget install GitHub.GitHubDesktop --installer-type exe
.
Brief description of your issue
When installing Github Desktop with Winget, the file extension is incorrect and causes the Github Desktop Deployment Tool to be installed.
Steps to reproduce
winget install GitHub.GitHubDesktop --force Found GitHub Desktop [GitHub.GitHubDesktop] Version 3.4.1 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://desktop.githubusercontent.com/github-desktop/releases/3.4.1-cb739340/GitHubDesktopSetup-x64.msi ██████████████████████████████ 151 MB / 151 MB Successfully verified installer hash Starting package install... Successfully installed
Expected behavior
false: https://desktop.githubusercontent.com/github-desktop/releases/3.4.1-cb739340/GitHubDesktopSetup-x64.msi
true: https://desktop.githubusercontent.com/github-desktop/releases/3.4.1-cb739340/GitHubDesktopSetup-x64.exe
Actual behavior
It loads incorrectly with Winget.
Environment