-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Uninstalling Admin-Installed Git 2.10.1 does not clean up %PROGRAMFILES%/Git
correctly
#909
Comments
First mentioned in a comment on #870 re the prerelease installer. |
My first guess is that this is due to the fact that you used the replace missing icon workaround by copying the icon manually in the #870 issue. The uninstaller only removes files that it installed. So with that manual work around you added an unknown file to the install dir. I guess the next uninstall will run through properly again. |
@nalla I never used the missing icon workaround, I only ever used the prerelease installer. This issue has also persisted across multiple uninstall-install cycles. |
It would be helpful to know which folders and/or files are left behind. Throughout development of the MSI, the MSI installer is also leaving folders/files behind. I'm wondering if it's the same set of folders/files. It's on my short list of things to look into for the MSI. |
|
@sxlijin could you install the Git for Windows SDK, then verify that you can make an installer, then add
in That would help me very, very much. |
Before I forget about this, the reproduction steps I listed are slightly flawed. It seems that to consistently reproduce, I have to run G4W 2.10.0 and then G4W 2.10.1 (no uninstall in between). SHA-512s are as follows:
|
@dscho when I made my previous comment I was able to make an installer (off |
It is not really hanging. It is working really, really hard. You can see that when looking at the |
@dscho thanks for that! Re your fix, it only sort of works for me. After uninstalling, I now have:
I've been testing by manually blowing away |
@sxlijin I am terribly sorry to leave you hanging for so long! For the record, please feel free to ping me when you see that a ticket fell off my radar, waiting for my response. So it kinda works? What if you add
too? This would be a nice fix in the upcoming Git for Windows v2.11.0, if it works. |
@dscho no worries. The fix works for me! I've made a branch with the fix at my fork, but I can't seem to PR it in (GH is complaining about entirely different commit histories?). SubmittingPatches also describes a very long email workflow that doesn't seem to be necessary per se for this, and perhaps it'll be better for you to just make the fixes since you know the process better than me. I'm happy to try to figure stuff out if you'd like, though. |
Heh... You pushed this branch into your fork of
The I ended up cherry-picking the commit, touching up the commit message while at it. Thank you for helping make Git for Windows better! |
The uninstaller [no longer leaves an empty `Git\mingw64` folder behind](git-for-windows/git#909). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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?
Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
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.
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.
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 inAppData
, it's not a very clear install path.I don't have this issue with
version 2.10.0.windows.1
.The text was updated successfully, but these errors were encountered: