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

Problems with installing Git for Windows #523

Closed
Shakil-Shahadat opened this issue Nov 10, 2015 · 14 comments
Closed

Problems with installing Git for Windows #523

Shakil-Shahadat opened this issue Nov 10, 2015 · 14 comments
Labels

Comments

@Shakil-Shahadat
Copy link

  1. Opens in background, tried couple of times with same result.
  2. While trying to install first time it said it can't create folder 'C:\Program Files\Git\tmp', though it already asked for administrative privilege and I gave it. In later attempts, it didn't even ask for administrative privilege.

I had to run it as an administrator to install the software. I faced this problem using git Git-2.6.3-64-bit.

Thanks.

@TaleTN
Copy link

TaleTN commented Nov 11, 2015

Same here (on Win7 Pro x64). When I ran the installer as administrator it seems to install just fine, although it didn't seem to remember my installer options (but I guess that is because I ran it as administrator, right?).

@mikefourie-zz
Copy link

Having the same issues. Now installing to the new default which appears to be the users hive, though this appears to be hung after 20 minutes+.... I had to kill that install. I then ran it as administrator and it worked ok (installing to users hive).

@dscho
Copy link
Member

dscho commented Nov 12, 2015

Could you try to uninstall Git completely, then manually remove C:\Program Files\Git and then reinstall (not as admin)?

@dscho dscho added the bug label Nov 12, 2015
@TaleTN
Copy link

TaleTN commented Nov 12, 2015

Sure. After uninstalling I reinstalled into C:\Users...\AppData\Local\Programs\Git, but then the installer appeared to be stuck. But after ending the task, uninstalling again, rebooting, and then running the installer again I have managed to successfully install Git into C:\Users...\AppData\Local\Programs\Git. So I guess this seems to works as intended, as long as you haven't installed into C:\Program Files\Git before. Good I guess, thanks.

However, IMHO you shouldn't install binaries into AppData, so I think I would prefer to install into C:\Program Files\Git. I guess this means that I have to run the installer as administrator from now on, but so be it.

@mikefourie-zz
Copy link

same as what TaleTN said...

@dscho
Copy link
Member

dscho commented Nov 13, 2015

you shouldn't install binaries into AppData

@TaleTN I don't.

@TaleTN
Copy link

TaleTN commented Nov 13, 2015

@dscho Don't what?

@dscho
Copy link
Member

dscho commented Nov 15, 2015

@TaleTN read again what you wrote: "you should'nt install binaries into AppData" and then read again what I wrote: "I don't".

@TaleTN
Copy link

TaleTN commented Nov 15, 2015

Ah, I see... Well, the current installer does, and by default, so I would suggest changing that to a more sensible default then (I guess like it was before). Thanks!

@dscho
Copy link
Member

dscho commented Nov 15, 2015

the current installer does

No, it does not. At least if you run it as an administrator (and if I am not mistaken, also under certain other circumstances). It installs into C:\Program Files\Git by default

It only falls back to AppData if the current user cannot write to C:\Program Files.

@jzp74
Copy link

jzp74 commented Nov 15, 2015

I'm having the same problem: 2.6.2 installed by default correctly in C:\Program Files\Git
Removed 2.6.2 and installed 2.6.3 (with same user, who has admin rights) the installer cannot (and will not) install in C:\Program Files\Git

@TaleTN
Copy link

TaleTN commented Nov 16, 2015

@dscho Yes, you are right. However, do note that by default a normal Windows user can't write to C:\Program Files, so to do a "normal" installation most users will have to run the installer as administrator now. This isn't a huge issue, but IMHO it is a nuisance, and apparently (and understandably, again IMHO) it leads to questions.

@dscho
Copy link
Member

dscho commented Nov 16, 2015

@TaleTN yes, I understand that it is a nuisance and that it is nice to vent. Please note, though, that the conversation you force on me does only one thing: delay the fix. (Hint: you could have helped working on a resolution; or you could have let me work on the resolution instead of spending time in this here bug tracker.)

@TaleTN
Copy link

TaleTN commented Nov 16, 2015

@dscho Right!
git-for-windows/build-extra#88

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

No branches or pull requests

5 participants