Skip to content

Installers do not work without graphical environment #6551

Open

Description

@andrewm-aero

Existing issues matching what you're seeing

  • I was not able to find an open or closed issue matching what I'm seeing

Git for Windows version

2.56.0.4

Windows version

Other

Windows CPU architecture

x86_64 (64-bit)

Additional Windows version information

Windows Server 2025

Options set during installation

N/A

Other interesting things

Both the standalone and portable installers fail when run from a shell without a graphical session. This is trivially reproducible by running them under an AWS EC2 instance using an SSM session.

Terminal/shell

Powershell

Commands that trigger the issue

See below

Expected behaviour

The installer to work.

Actual behaviour

The standalone installer fails (using arguments /SILENT /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL /LOG=...) with the following relevant log lines

2026-11-09 19:57:10.168   Starting the installation process.
2026-11-09 19:57:10.171   Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x801C
2026-11-09 19:57:10.171   Fatal exception during installation process (Exception):
                          Internal error: Failed to expand shell folder constant "localappdata".
2026-11-09 19:57:10.171   Exception message:
2026-11-09 19:57:10.171   Defaulting to OK for suppressed message box (OK):
                          Internal error: Failed to expand shell folder constant "localappdata".
2026-11-09 19:57:10.171   Defaulting to OK for suppressed message box (OK):
                          Setup was not completed.

The portable installer (using arguments -y -gm2 -o ...) does absolutely nothing at all.

Both of the above achieve desired results when running from an RDP session with a "real" user.

Repository

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions