Git: Install fails when previous installation drive is missing

Created on 27 Feb 2017  路  4Comments  路  Source: git-for-windows/git

  • [x] 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?
    64-bit
$ git --version --build-options

git version 2.12.0.windows.1
built from commit: d4baef1cdfef9de62d43f9682a98ba57adc842e4
sizeof-long: 4
machine: x86_64

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
    Windows 10 Pro 64-bit
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

  • What options did you set as part of the installation? Or did you choose the
    defaults?
    Defaults except include symlinks
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Path Option: CmdTools
SSH Option: OpenSSH
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

My "D:" drive had failed. I had my previous install of Git on that drive. I was trying to install to a different drive ("K:"), but was not given the opportunity to select a path (I assume my registry pointed to the previous install on the no non-existent drive).

When I assigned a new drive to "D:", I received the error "unable to remove previous version, trying to continue install" or similar during install. Install continued and was successful

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

bash

Launched the installation app (Git-2.12.0-64-bit.exe)
  • What did you expect to occur after running these commands?

Successful installation

  • What actually happened instead?

Install aborted with "invalid path" error

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

* insert URL here *

pending-answer

Most helpful comment

@aptwebapps try calling the installer with /DIR="X:\where\you\want\git, e.g. /DIR="C:\Program Files\Git.

All 4 comments

The report states:

When I assigned a new drive to "D:", I received the error "unable to remove previous version, trying to continue install" or similar during install. Install continued and was successful

and then it states:

What actually happened instead?

Install aborted with "invalid path" error

Which one is it?

I got too tired waiting for the answer to my question.

Exact same thing. D: drive is gone, go to reinstall, it gets to what I presume is near the end of the install wizard and says, "The drive or UNC share you selected does not exist or is not accessible. Please select another" but there never was an option to select a drive to install to. The previous version can't be uninstalled because it can't find the uninstaller (because the drive is gone).

@aptwebapps try calling the installer with /DIR="X:\where\you\want\git, e.g. /DIR="C:\Program Files\Git.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dlk-pavan picture dlk-pavan  路  4Comments

daxelrod picture daxelrod  路  4Comments

jesterKing picture jesterKing  路  3Comments

michaelblyons picture michaelblyons  路  5Comments

vocaviking picture vocaviking  路  5Comments