Skip to content

Uninstalling Admin-Installed Git 2.10.1 does not clean up %PROGRAMFILES%/Git correctly #909

Closed
@sxlijin

Description

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

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?

    $ git --version --build-options
    git version 2.10.1.windows.1
    sizeof-long: 4
    machine: x86_64
    
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

    $ cmd /c ver
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
  • What options did you set as part of the installation? Or did you choose the
    defaults?

    I don't believe the installation options affect this in any way. I tried multiple installation options with the 2.10.1 prerelease installer and they all produced this bug.

    $ cat /etc/install-options.txt
    Path Option: BashOnly
    SSH Option: OpenSSH
    CRLF Option: LFOnly
    Bash Terminal Option: MinTTY
    Performance Tweaks FSCache: Enabled
    

Details

  • What commands did you run to trigger this issue? If you can provide a Minimal, Complete, and Verifiable example this will help us understand the issue.

    1. Install via "Run as Administrator" (using UAC - the account I work on is not an Administrator).
    2. Uninstall via "Programs and Features"
  • What did you expect to occur after running these commands?

    %PROGRAMFILES%/Git is gone.

  • What actually happened instead?

    %PROGRAMFILES%/Git is left behind.

  • Why does this matter?

    Because the %PROGRAMFILES%/Git folder gets left behind, the local user installer (if invoked following the aforementioned uninstallation) defaults to %PROGRAMFILES%/Git for an install location. While the user can manually point it to the appropriate path in AppData, it's not a very clear install path.

    I don't have this issue with version 2.10.0.windows.1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions