To see what options are available, you can run the installer from a command prompt with the /SAVEINF
option:
> .\Git-2.12.2.2-64-bit.exe /SAVEINF="C:\Users\USERNAME\Desktop\git.inf"
Go through the installer, choose the options you want, and install Git. When the installer finishes, you can inspect the git.inf
file to see the option and value you need.
Use the INF file you created above as the template for your future silent installs. Run the installer from a command prompt with the /LOADINF="PATH\TO\YOUR\INF.inf"
.
It looks like the INF option you want is PathOption=Cmd
.
I need to do something similar and turn off the credential store in a silent install (with the latest 2.8), and also can't find a way to do it. :( – David Ebbo – 2016-06-14T13:46:58.430
Now it is October 2019, and NONE of the answers here work any longer. The portable edition installer seems determined to pop a GUI window. – Kevin Buchs – 2019-10-08T19:15:13.077