Git installation via cmdline with SkipDowngrade flag for Windows does not exit

47 views
Skip to first unread message

samir.so...@gmail.com

unread,
Aug 31, 2020, 5:49:40 AM8/31/20
to git-for-windows
Hi 

I was running this cmdline

%~dp0\Git-2.19.2-32-bit.exe /VERYSILENT /LOG="gitinstall_%RANDOM%.log" /LOADINF="%~dp0\gitconfig.ini" /DIR="%ProgramFiles(x86)%\Git" /SKIPDOWNGRADE=1

But it seems the installer does not exit, even after it prints the following information.

2020-08-30 06:37:16.759   Successfully imported the DLL function. Delay loaded? No
2020-08-30 06:37:16.763   Message box (OK):
                          Skipping downgrade from 2.27.0 to 2.19.2


Are there any other flags I need to specify if I need to skip downgrading GIT?

In comparison, the successful installation of GIT has the log

2020-08-30 03:15:58.623   Installation process succeeded.
2020-08-30 03:16:01.009   Line 3025: Executing D:\Program Files (x86)\Git\post-install.bat
2020-08-30 03:16:13.368   Line 3033: post-install scripts run successfully:
                                  1 file(s) copied.
                                  1 file(s) copied.
                          "running post-install"
                          'D:\Windows\system32\drivers\etc\hosts' -> '/etc/hosts'
                          'D:\Windows\system32\drivers\etc\protocol' -> '/etc/protocols'
                          'D:\Windows\system32\drivers\etc\services' -> '/etc/services'
                          'D:\Windows\system32\drivers\etc\networks' -> '/etc/networks'
2020-08-30 03:16:13.659   Need to restart Windows? No
2020-08-30 03:16:13.659   Deinitializing Setup.
2020-08-30 03:16:13.700   Log closed.

Regards
Samir

Philip Oakley

unread,
Aug 31, 2020, 8:37:07 AM8/31/20
to git-for-windows
For anyone following along, it's being answered at https://github.com/git-for-windows/git/issues/2801

Looks like some other flags are needed as well..
Reply all
Reply to author
Forward
0 new messages