microsoft / microsoft/winget-pkgs
[Package Issue]: Microsoft.Git
Open
Nobody has claimed this yet.
Issue-Bug
- Dominant language
- No language data
- Stars
- 11.1k
- Forks
- 9.7k
- Avg merge
- 1h 32m
- Merged PRs (30d)
- 376
Description
Please confirm these before moving forward
- I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue
Installation issue.
Brief description of your issue
Installation fails with exitcode 4
I think the problem is that there is no admin/uac popup.
Steps to reproduce
$ winget.exe install --id "Microsoft.Git" --exact --source winget --accept-source-agreements --accept-package-agreements
Gefunden Git [Microsoft.Git] Version 2.47.0.0.3
Diese Anwendung wird von ihrem Besitzer an Sie lizenziert.
Microsoft ist nicht verantwortlich und erteilt keine Lizenzen für Pakete von Drittanbietern.
Download läuft https://github.com/microsoft/git/releases/download/v2.47.0.vfs.0.3/Git-2.47.0.vfs.0.3-64-bit.exe
██████████████████████████████ 69.4 MB / 69.4 MB
Der Installer-Hash wurde erfolgreich überprüft
Paketinstallation wird gestartet...
Das Installationsprogramm fordert die Ausführung als Administrator an. Es wird eine Eingabeaufforderung erwartet.
Installation fehlgeschlagen mit Exitcode: 4
Das Installationsprotokoll ist verfügbar unter: C:\Users\reini\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.Git.2.47.0.0.3-2024-11-22-17-24-14.147.log
Actual behavior
installation fails with exitcode 4
Expected behavior
installation works
Environment
$ winget --info
Windows-Paket-Manager v1.9.25200
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.
Windows: Windows.Desktop v10.0.22631.4460
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.24.25200.0
WinGet-Verzeichnisse
-----------------------------------------------------------------------------------------------------------------------------------------
Protokolle %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
Benutzereinstellungen %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Verzeichnis für portierbare Links (Benutzer) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portables Linkverzeichnis (Computer) C:\Program Files\WinGet\Links
Portierbarer Paketstamm (Benutzer) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portierbarer Paketstamm C:\Program Files\WinGet\Packages
Portierbares Paketstamm (x86) C:\Program Files (x86)\WinGet\Packages
Installationsprogrammdownloads %USERPROFILE%\Downloads
Links
-----------------------------------------------------------------------------------------
Datenschutzerklärung https://aka.ms/winget-privacy
Lizenzvereinbarung https://aka.ms/winget-license
Hinweise von Drittanbietern https://aka.ms/winget-3rdPartyNotice
Startseite https://aka.ms/winget
Windows Store-Nutzungsbedingungen https://www.microsoft.com/en-us/storedocs/terms-of-sale
Administratoreinstellung Status
-----------------------------------------------------
LocalManifestFiles Deaktiviert
BypassCertificatePinningForMicrosoftStore Deaktiviert
InstallerHashOverride Deaktiviert
LocalArchiveMalwareScanOverride Deaktiviert
ProxyCommandLineOptions Deaktiviert
DefaultProxy Deaktiviert
Screenshots and Logs
$ cat C:\Users\reini\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.Git.2.47.0.0.3-2024-11-22-17-24-14.147.log
2024-11-22 17:24:14.646 Log opened. (Time zone: UTC+01:00)
2024-11-22 17:24:14.646 Setup version: Inno Setup version 6.3.3
2024-11-22 17:24:14.646 Original Setup EXE: C:\Users\reini\AppData\Local\Temp\WinGet\Microsoft.Git.2.47.0.0.3\Git-2.47.0.vfs.0.3-64-bit.exe
2024-11-22 17:24:14.647 Setup command line: /SL5="$B1040,71510613,880640,C:\Users\reini\AppData\Local\Temp\WinGet\Microsoft.Git.2.47.0.0.3\Git-2.47.0.vfs.0.3-64-bit.exe" /SP- /SILENT /SUPPRESSMSGBOXES /NORESTART /LOG="C:\Users\reini\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.Git.2.47.0.0.3-2024-11-22-17-24-14.147.log" /COMPONENTS=icons,ext,gitlfs,assoc,assoc_sh,consolefont,windowsterminal,scalar
2024-11-22 17:24:14.647 Windows version: 10.0.22631
2024-11-22 17:24:14.647 Windows architecture: x64 (64-bit)
2024-11-22 17:24:14.647 Machine types supported by system: x86 x64
2024-11-22 17:24:14.647 User privileges: None
2024-11-22 17:24:14.671 Administrative install mode: No
2024-11-22 17:24:14.671 Install mode root key: HKEY_CURRENT_USER
2024-11-22 17:24:14.671 64-bit install mode: Yes
2024-11-22 17:24:14.671 Created temporary directory: C:\Users\reini\AppData\Local\Temp\is-CN4S4.tmp
2024-11-22 17:24:14.673 -- DLL function import --
2024-11-22 17:24:14.673 Function name: SetEnvironmentVariableW
2024-11-22 17:24:14.673 DLL name: Kernel32.dll
2024-11-22 17:24:14.673 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.673 Importing the DLL function.
2024-11-22 17:24:14.673 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.673 -- DLL function import --
2024-11-22 17:24:14.673 Function name: SetEnvironmentVariableW
2024-11-22 17:24:14.673 DLL name: Kernel32.dll
2024-11-22 17:24:14.673 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.673 Importing the DLL function.
2024-11-22 17:24:14.673 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.673 -- DLL function import --
2024-11-22 17:24:14.673 Function name: CloseHandle
2024-11-22 17:24:14.673 DLL name: Kernel32.dll
2024-11-22 17:24:14.673 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.673 Importing the DLL function.
2024-11-22 17:24:14.673 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.673 -- DLL function import --
2024-11-22 17:24:14.673 Function name: GetFileVersionInfoSizeA
2024-11-22 17:24:14.673 DLL name: Version.dll
2024-11-22 17:24:14.673 Dest DLL name: Version.dll
2024-11-22 17:24:14.673 Importing the DLL function.
2024-11-22 17:24:14.673 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.673 -- DLL function import --
2024-11-22 17:24:14.673 Function name: GetFileVersionInfoA
2024-11-22 17:24:14.673 DLL name: Version.dll
2024-11-22 17:24:14.673 Dest DLL name: Version.dll
2024-11-22 17:24:14.673 Importing the DLL function.
2024-11-22 17:24:14.673 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.673 -- DLL function import --
2024-11-22 17:24:14.673 Function name: VerQueryValueA
2024-11-22 17:24:14.673 DLL name: Version.dll
2024-11-22 17:24:14.673 Dest DLL name: Version.dll
2024-11-22 17:24:14.673 Importing the DLL function.
2024-11-22 17:24:14.673 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.674 -- DLL function import --
2024-11-22 17:24:14.674 Function name: CreateToolhelp32Snapshot
2024-11-22 17:24:14.674 DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Importing the DLL function.
2024-11-22 17:24:14.674 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.674 -- DLL function import --
2024-11-22 17:24:14.674 Function name: Process32FirstW
2024-11-22 17:24:14.674 DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Importing the DLL function.
2024-11-22 17:24:14.674 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.674 -- DLL function import --
2024-11-22 17:24:14.674 Function name: Process32NextW
2024-11-22 17:24:14.674 DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Importing the DLL function.
2024-11-22 17:24:14.674 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.674 -- DLL function import --
2024-11-22 17:24:14.674 Function name: Module32FirstW
2024-11-22 17:24:14.674 DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Importing the DLL function.
2024-11-22 17:24:14.674 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.674 -- DLL function import --
2024-11-22 17:24:14.674 Function name: Module32NextW
2024-11-22 17:24:14.674 DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Importing the DLL function.
2024-11-22 17:24:14.674 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.674 -- DLL function import --
2024-11-22 17:24:14.674 Function name: EnumProcesses
2024-11-22 17:24:14.674 DLL name: Psapi.dll
2024-11-22 17:24:14.674 Dest DLL name: Psapi.dll
2024-11-22 17:24:14.674 Importing the DLL function.
2024-11-22 17:24:14.674 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.674 -- DLL function import --
2024-11-22 17:24:14.674 Function name: EnumProcessModules
2024-11-22 17:24:14.674 DLL name: Psapi.dll
2024-11-22 17:24:14.674 Dest DLL name: Psapi.dll
2024-11-22 17:24:14.674 Importing the DLL function.
2024-11-22 17:24:14.674 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.674 -- DLL function import --
2024-11-22 17:24:14.674 Function name: OpenProcess
2024-11-22 17:24:14.674 DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.674 Importing the DLL function.
2024-11-22 17:24:14.674 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.674 -- DLL function import --
2024-11-22 17:24:14.674 Function name: GetModuleFileNameExW
2024-11-22 17:24:14.674 DLL name: Psapi.dll
2024-11-22 17:24:14.674 Dest DLL name: Psapi.dll
2024-11-22 17:24:14.674 Importing the DLL function.
2024-11-22 17:24:14.674 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.674 -- DLL function import --
2024-11-22 17:24:14.674 Function name: RmStartSession
2024-11-22 17:24:14.674 DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.674 Dest DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.674 Importing the DLL function.
2024-11-22 17:24:14.674 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.674 -- DLL function import --
2024-11-22 17:24:14.674 Function name: RmEndSession
2024-11-22 17:24:14.674 DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.674 Dest DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.674 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: RmRegisterResources
2024-11-22 17:24:14.675 DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.675 Dest DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: RmGetList
2024-11-22 17:24:14.675 DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.675 Dest DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: RmShutdown
2024-11-22 17:24:14.675 DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.675 Dest DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: RmRestart
2024-11-22 17:24:14.675 DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.675 Dest DLL name: Rstrtmgr.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: TerminateProcess
2024-11-22 17:24:14.675 DLL name: Kernel32.dll
2024-11-22 17:24:14.675 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: WaitForSingleObject
2024-11-22 17:24:14.675 DLL name: Kernel32.dll
2024-11-22 17:24:14.675 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: CreatePipe
2024-11-22 17:24:14.675 DLL name: kernel32.dll
2024-11-22 17:24:14.675 Dest DLL name: kernel32.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: SetHandleInformation
2024-11-22 17:24:14.675 DLL name: kernel32.dll
2024-11-22 17:24:14.675 Dest DLL name: kernel32.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: CreateProcessA
2024-11-22 17:24:14.675 DLL name: kernel32.dll
2024-11-22 17:24:14.675 Dest DLL name: kernel32.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: ReadFile
2024-11-22 17:24:14.675 DLL name: kernel32.dll
2024-11-22 17:24:14.675 Dest DLL name: kernel32.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: PeekMessageA
2024-11-22 17:24:14.675 DLL name: user32.dll
2024-11-22 17:24:14.675 Dest DLL name: user32.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: TranslateMessage
2024-11-22 17:24:14.675 DLL name: user32.dll
2024-11-22 17:24:14.675 Dest DLL name: user32.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: DispatchMessageA
2024-11-22 17:24:14.675 DLL name: user32.dll
2024-11-22 17:24:14.675 Dest DLL name: user32.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: PeekNamedPipe
2024-11-22 17:24:14.675 DLL name: kernel32.dll
2024-11-22 17:24:14.675 Dest DLL name: kernel32.dll
2024-11-22 17:24:14.675 Importing the DLL function.
2024-11-22 17:24:14.675 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.675 -- DLL function import --
2024-11-22 17:24:14.675 Function name: GetExitCodeProcess
2024-11-22 17:24:14.675 DLL name: kernel32.dll
2024-11-22 17:24:14.675 Dest DLL name: kernel32.dll
2024-11-22 17:24:14.676 Importing the DLL function.
2024-11-22 17:24:14.676 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.676 -- DLL function import --
2024-11-22 17:24:14.676 Function name: GetLastError
2024-11-22 17:24:14.676 DLL name: kernel32.dll
2024-11-22 17:24:14.676 Dest DLL name: kernel32.dll
2024-11-22 17:24:14.676 Importing the DLL function.
2024-11-22 17:24:14.676 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.676 -- DLL function import --
2024-11-22 17:24:14.676 Function name: CreateHardLinkW
2024-11-22 17:24:14.676 DLL name: setup:Kernel32.dll
2024-11-22 17:24:14.676 Dest DLL name: Kernel32.dll
2024-11-22 17:24:14.676 Importing the DLL function.
2024-11-22 17:24:14.676 Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:24:14.676 -- DLL function import --
2024-11-22 17:24:14.676 Function name: ExitProcess
2024-11-22 17:24:14.676 DLL name: kernel32.dll
2024-11-22 17:24:14.676 Dest DLL name: kernel32.dll
2024-11-22 17:24:14.676 Importing the DLL function.
2024-11-22 17:24:14.676 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.676 -- DLL function import --
2024-11-22 17:24:14.676 Function name: GetFileAttributesA
2024-11-22 17:24:14.676 DLL name: kernel32.dll
2024-11-22 17:24:14.676 Dest DLL name: kernel32.dll
2024-11-22 17:24:14.676 Importing the DLL function.
2024-11-22 17:24:14.676 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.676 -- DLL function import --
2024-11-22 17:24:14.676 Function name: SetFileAttributesA
2024-11-22 17:24:14.676 DLL name: kernel32.dll
2024-11-22 17:24:14.676 Dest DLL name: kernel32.dll
2024-11-22 17:24:14.676 Importing the DLL function.
2024-11-22 17:24:14.676 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:14.676 -- DLL function import --
2024-11-22 17:24:14.676 Function name: CryptStringToBinaryW
2024-11-22 17:24:14.676 DLL name: crypt32.dll
2024-11-22 17:24:14.676 Dest DLL name: crypt32.dll
2024-11-22 17:24:14.676 Importing the DLL function.
2024-11-22 17:24:14.677 Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:24:15.052 Line 132: First directory in hierarchy that already exists is "C:\Program Files\Git".
2024-11-22 17:24:15.054 Line 132: First directory in hierarchy that already exists is "C:\Program Files\Git".
2024-11-22 17:24:15.108 Starting the installation process.
2024-11-22 17:24:15.113 Creating directory: C:\Program Files\Git\dev
2024-11-22 17:24:15.113 Fatal exception during installation process (Exception):
Setup was unable to create the directory "C:\Program Files\Git\dev".
Error 5: Zugriff verweigert.
2024-11-22 17:24:15.113 Exception message:
2024-11-22 17:24:15.113 Defaulting to OK for suppressed message box (OK):
Setup was unable to create the directory "C:\Program Files\Git\dev".
Error 5: Zugriff verweigert.
2024-11-22 17:24:15.113 Defaulting to OK for suppressed message box (OK):
Setup was not completed.
Please correct the problem and run Setup again.
2024-11-22 17:24:15.113 Rolling back changes.
2024-11-22 17:24:15.120 Starting the uninstallation process.
2024-11-22 17:24:15.887 Uninstallation process succeeded.
2024-11-22 17:24:17.397 Deinitializing Setup.
2024-11-22 17:24:17.416 Log closed.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the winget.exe install --id "Microsoft.Git" command and reviewing the linked diagnostic log for the elevation failure. The work is done when Microsoft.Git installs successfully through the winget source instead of returning exit code 4.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100