Windows 10 pro x64.
Git for Windows version 2.20.1 x64.
I try to reinstall, restart many time, Run as administrator, but not success.

also version 2.20.1 for Windows 32 bit, 64 bit cause same error (like screenshot).
C:\Users\donhuvy>git --version --build-options
git version 2.20.0.windows.1
cpu: x86_64
built from commit: 95155834166f64fe9666f2c0a4909f076080893a
sizeof-long: 4
sizeof-size_t: 8
C:\Users\donhuvy>
C:\Users\donhuvy>cmd.exe /c ver
Microsoft Windows [Version 10.0.16299.847]
C:\Users\donhuvy>
Install by file Git-2.20.0-64-bit.exe
That sounds as if you tried to use Windows' default console window for Git Bash (note: the issue reporting template really is not meant to annoy bug reporters, but rather intended to help you not forget vital information).
Can you edit git-bash.exe via ResEdit? Its first string table has two entries, and you would want to remove the first one.
I used previous version of Git for Windows, and the problem did not exist.
You said true, I tried to use Windows' default console (cmd).
A warning popup display, it is wrong. It is exactly a bug.
@donhuvy please do try to work with me, if you do not try ResEdit I get the impression that you might not be interested in resolving this bug at all.
ok, I will reply soon. I am using macOS, I will report about it when use Windows OS.
This is my result
First line
APP_ID=GitForWindows.Bash ALLOC_CONSOLE=1 usr\\bin\\mintty.exe --nodaemon -o AppID=GitForWindows.Bash -o AppLaunchCmd=\"@@EXEPATH@@\\git-bash.exe\" -o AppName=\"Git Bash\" -i \"@@EXEPATH@@\\git-bash.exe\" --store-taskbar-properties -- /usr/bin/bash --login -i


git --version
git version 2.20.0.windows.1
(latest version 2.20.1 for Windows is the same)
On Sat, 5 Jan 2019, Do Nhu Vy wrote:
This is my result
Could you summarize that without pasting an image that I cannot see in a
text reader?
The content of it is
APP_ID=GitForWindows.Bash ALLOC_CONSOLE=1 usr\bin\mintty.exe --nodaemon -o AppID=GitForWindows.Bash -o AppLaunchCmd="@@EXEPATH@@\git-bash.exe" -o AppName="Git Bash" -i "@@EXEPATH@@\git-bash.exe" --store-taskbar-properties -- /usr/bin/bash --login -i
What antivirus do you have?
Yes, I use McAfee Antivirus
After I use ResEdit on file git-bash.exe, I have what I expected. For resolving this issue, please consider the affect of other factor (such as Anti-virus software). I you still feel unclear, please require more information.
I think there is a bug where the actual condition of the error is not handed through correctly, and the installer will always claim that it is out of memory, even if it is a matter of access being denied.
I just kicked off a snapshot build that should address the incorrect error message, and would like to ask you, @donhuvy, to test this installer; It should be available here once the build is done.
To work around an antivirus, perhaps the installer needs to patch the file while in a temporary directory, and then copy the patched file to ProgramFiles/Git
My PC
I download Git for Windows 64bit - (commit 1dfd1896e4). Turn on Real-time protection of Mc-Afee antivirus.

Error happen
Git prerelease-2.21.0.rc2.windows.1.335.g1dfd1896e4 Setup
Unable to close C:\Program Files\Git\git-bash.exe after editing.
As you see error notice dialog, after I press button OK, Git Bash still work as I want.
To work around an antivirus, perhaps the installer needs to patch the file while in a temporary directory, and then copy the patched file to ProgramFiles/Git
That's a good suggestion. Could you open a PR to make it so?
A temp folder is probably inappropriate. The file should be on the same
filesystem/volume and moved over for performance reasons. But when you look
closer, I am pretty sure inno setup does that already.
Best regards, Mike
On Fri, Feb 22, 2019, 3:01 PM Johannes Schindelin notifications@github.com
wrote:
To work around an antivirus, perhaps the installer needs to patch the file
while in a temporary directory, and then copy the patched file to
ProgramFiles/GitThat's a good suggestion. Could you open a PR to make it so?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/git-for-windows/git/issues/2003#issuecomment-466527881,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHJ-yBet2EYKzJJR-rbeVFC5dMiot1iaks5vQEx_gaJpZM4ZlNNm
.
@mfriedrich74 you don't need to guess, you can look!
In any case, we already work with a temporary directory in similar cases, look for ExpandConstant('{tmp}') in install.iss.
To test out your changes:
sdk cd build-extrainstaller/install.iss (look for "edit-git-bash", and use CopyFile() with the third parameter set to True to force-overwrite)./installer/release.sh 0-test) and running it.Okay, people, I really described in detail how you can help yourself with this issue. Ball's in your court now.
I install git version 2.21.0.windows.1 , it is ok.