microsoft / microsoft/winget-pkgs

[Package Issue]: Git.Git 2.47.0.2 did not install

Open
#193,149 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Help-Wanted 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 "Git.Git" --exact --source winget --accept-source-agreements --accept-package-agreements
Gefunden Git [Git.Git] Version 2.47.0.2
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/git-for-windows/git/releases/download/v2.47.0.windows.2/Git-2.47.0.2-64-bit.exe
  ██████████████████████████████  65.5 MB / 65.5 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-Git.Git.2.47.0.2-2024-11-22-17-25-09.183.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-Git.Git.2.47.0.2-2024-11-22-17-25-09.183.log
2024-11-22 17:25:09.646   Log opened. (Time zone: UTC+01:00)
2024-11-22 17:25:09.646   Setup version: Inno Setup version 6.3.3
2024-11-22 17:25:09.646   Original Setup EXE: C:\Users\reini\AppData\Local\Temp\WinGet\Git.Git.2.47.0.2\Git-2.47.0.2-64-bit.exe
2024-11-22 17:25:09.646   Setup command line: /SL5="$270F2A,67469616,880640,C:\Users\reini\AppData\Local\Temp\WinGet\Git.Git.2.47.0.2\Git-2.47.0.2-64-bit.exe" /SP- /SILENT /SUPPRESSMSGBOXES /NORESTART /LOG="C:\Users\reini\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Git.Git.2.47.0.2-2024-11-22-17-25-09.183.log" /COMPONENTS=icons,ext,gitlfs,assoc,assoc_sh,consolefont,windowsterminal,scalar
2024-11-22 17:25:09.646   Windows version: 10.0.22631
2024-11-22 17:25:09.646   Windows architecture: x64 (64-bit)
2024-11-22 17:25:09.646   Machine types supported by system: x86 x64
2024-11-22 17:25:09.646   User privileges: None
2024-11-22 17:25:09.668   Administrative install mode: No
2024-11-22 17:25:09.668   Install mode root key: HKEY_CURRENT_USER
2024-11-22 17:25:09.668   64-bit install mode: Yes
2024-11-22 17:25:09.669   Created temporary directory: C:\Users\reini\AppData\Local\Temp\is-514DK.tmp
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: SetEnvironmentVariableW
2024-11-22 17:25:09.670   DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: SetEnvironmentVariableW
2024-11-22 17:25:09.670   DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: CloseHandle
2024-11-22 17:25:09.670   DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: GetFileVersionInfoSizeA
2024-11-22 17:25:09.670   DLL name: Version.dll
2024-11-22 17:25:09.670   Dest DLL name: Version.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: GetFileVersionInfoA
2024-11-22 17:25:09.670   DLL name: Version.dll
2024-11-22 17:25:09.670   Dest DLL name: Version.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: VerQueryValueA
2024-11-22 17:25:09.670   DLL name: Version.dll
2024-11-22 17:25:09.670   Dest DLL name: Version.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: CreateToolhelp32Snapshot
2024-11-22 17:25:09.670   DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: Process32FirstW
2024-11-22 17:25:09.670   DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: Process32NextW
2024-11-22 17:25:09.670   DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: Module32FirstW
2024-11-22 17:25:09.670   DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: Module32NextW
2024-11-22 17:25:09.670   DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: EnumProcesses
2024-11-22 17:25:09.670   DLL name: Psapi.dll
2024-11-22 17:25:09.670   Dest DLL name: Psapi.dll
2024-11-22 17:25:09.670   Importing the DLL function.
2024-11-22 17:25:09.670   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.670   -- DLL function import --
2024-11-22 17:25:09.670   Function name: EnumProcessModules
2024-11-22 17:25:09.670   DLL name: Psapi.dll
2024-11-22 17:25:09.671   Dest DLL name: Psapi.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: OpenProcess
2024-11-22 17:25:09.671   DLL name: Kernel32.dll
2024-11-22 17:25:09.671   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: GetModuleFileNameExW
2024-11-22 17:25:09.671   DLL name: Psapi.dll
2024-11-22 17:25:09.671   Dest DLL name: Psapi.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: RmStartSession
2024-11-22 17:25:09.671   DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Dest DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: RmEndSession
2024-11-22 17:25:09.671   DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Dest DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: RmRegisterResources
2024-11-22 17:25:09.671   DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Dest DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: RmGetList
2024-11-22 17:25:09.671   DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Dest DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: RmShutdown
2024-11-22 17:25:09.671   DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Dest DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: RmRestart
2024-11-22 17:25:09.671   DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Dest DLL name: Rstrtmgr.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: TerminateProcess
2024-11-22 17:25:09.671   DLL name: Kernel32.dll
2024-11-22 17:25:09.671   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: WaitForSingleObject
2024-11-22 17:25:09.671   DLL name: Kernel32.dll
2024-11-22 17:25:09.671   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: CreatePipe
2024-11-22 17:25:09.671   DLL name: kernel32.dll
2024-11-22 17:25:09.671   Dest DLL name: kernel32.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: SetHandleInformation
2024-11-22 17:25:09.671   DLL name: kernel32.dll
2024-11-22 17:25:09.671   Dest DLL name: kernel32.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: CreateProcessA
2024-11-22 17:25:09.671   DLL name: kernel32.dll
2024-11-22 17:25:09.671   Dest DLL name: kernel32.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: ReadFile
2024-11-22 17:25:09.671   DLL name: kernel32.dll
2024-11-22 17:25:09.671   Dest DLL name: kernel32.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: PeekMessageA
2024-11-22 17:25:09.671   DLL name: user32.dll
2024-11-22 17:25:09.671   Dest DLL name: user32.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: TranslateMessage
2024-11-22 17:25:09.671   DLL name: user32.dll
2024-11-22 17:25:09.671   Dest DLL name: user32.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: DispatchMessageA
2024-11-22 17:25:09.671   DLL name: user32.dll
2024-11-22 17:25:09.671   Dest DLL name: user32.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: PeekNamedPipe
2024-11-22 17:25:09.671   DLL name: kernel32.dll
2024-11-22 17:25:09.671   Dest DLL name: kernel32.dll
2024-11-22 17:25:09.671   Importing the DLL function.
2024-11-22 17:25:09.671   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.671   -- DLL function import --
2024-11-22 17:25:09.671   Function name: GetExitCodeProcess
2024-11-22 17:25:09.672   DLL name: kernel32.dll
2024-11-22 17:25:09.672   Dest DLL name: kernel32.dll
2024-11-22 17:25:09.672   Importing the DLL function.
2024-11-22 17:25:09.672   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.672   -- DLL function import --
2024-11-22 17:25:09.672   Function name: GetLastError
2024-11-22 17:25:09.672   DLL name: kernel32.dll
2024-11-22 17:25:09.672   Dest DLL name: kernel32.dll
2024-11-22 17:25:09.672   Importing the DLL function.
2024-11-22 17:25:09.672   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.672   -- DLL function import --
2024-11-22 17:25:09.672   Function name: CreateHardLinkW
2024-11-22 17:25:09.672   DLL name: setup:Kernel32.dll
2024-11-22 17:25:09.672   Dest DLL name: Kernel32.dll
2024-11-22 17:25:09.672   Importing the DLL function.
2024-11-22 17:25:09.672   Successfully imported the DLL function. Delay loaded? Yes
2024-11-22 17:25:09.672   -- DLL function import --
2024-11-22 17:25:09.672   Function name: ExitProcess
2024-11-22 17:25:09.672   DLL name: kernel32.dll
2024-11-22 17:25:09.672   Dest DLL name: kernel32.dll
2024-11-22 17:25:09.672   Importing the DLL function.
2024-11-22 17:25:09.672   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.672   -- DLL function import --
2024-11-22 17:25:09.672   Function name: GetFileAttributesA
2024-11-22 17:25:09.672   DLL name: kernel32.dll
2024-11-22 17:25:09.672   Dest DLL name: kernel32.dll
2024-11-22 17:25:09.672   Importing the DLL function.
2024-11-22 17:25:09.672   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.672   -- DLL function import --
2024-11-22 17:25:09.672   Function name: SetFileAttributesA
2024-11-22 17:25:09.672   DLL name: kernel32.dll
2024-11-22 17:25:09.672   Dest DLL name: kernel32.dll
2024-11-22 17:25:09.672   Importing the DLL function.
2024-11-22 17:25:09.672   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:09.672   -- DLL function import --
2024-11-22 17:25:09.672   Function name: CryptStringToBinaryW
2024-11-22 17:25:09.672   DLL name: crypt32.dll
2024-11-22 17:25:09.672   Dest DLL name: crypt32.dll
2024-11-22 17:25:09.672   Importing the DLL function.
2024-11-22 17:25:09.672   Successfully imported the DLL function. Delay loaded? No
2024-11-22 17:25:10.023   Line 132: First directory in hierarchy that already exists is "C:\Program Files\Git".
2024-11-22 17:25:10.025   Line 132: First directory in hierarchy that already exists is "C:\Program Files\Git".
2024-11-22 17:25:10.072   Starting the installation process.
2024-11-22 17:25:10.079   Creating directory: C:\Program Files\Git\dev
2024-11-22 17:25:10.079   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:25:10.079   Exception message:
2024-11-22 17:25:10.079   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:25:10.079   Defaulting to OK for suppressed message box (OK):
                          Setup was not completed.

                          Please correct the problem and run Setup again.
2024-11-22 17:25:10.079   Rolling back changes.
2024-11-22 17:25:10.085   Starting the uninstallation process.
2024-11-22 17:25:10.827   Uninstallation process succeeded.
2024-11-22 17:25:12.330   Deinitializing Setup.
2024-11-22 17:25:12.348   Log closed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the PowerShell command shown in the issue and inspect the referenced WinGet diagnostic log, especially the installer privilege and exit-code details. Compare the Git.Git package installation behavior with the expected administrator prompt; done means the package installs successfully through the reported WinGet command.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, powershell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.