Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails when previous installation drive is missing #1074

Closed
1 task done
kc22033 opened this issue Feb 27, 2017 · 4 comments
Closed
1 task done

Install fails when previous installation drive is missing #1074

kc22033 opened this issue Feb 27, 2017 · 4 comments

Comments

@kc22033
Copy link

kc22033 commented Feb 27, 2017

  • 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 **

@dscho
Copy link
Member

dscho commented Aug 5, 2017

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?

@dscho
Copy link
Member

dscho commented Apr 4, 2018

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

@dscho dscho closed this as completed Apr 4, 2018
@aptwebapps
Copy link

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).

@dscho
Copy link
Member

dscho commented Nov 23, 2018

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

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

No branches or pull requests

3 participants