Git For Windows Silent Install Silent Arguments
Use a setup file https://github.com/git-for-windows/git/wiki/Silent-or-Unattended-Installation
You can also load install parameters from a file with /LOADINF="filename", and you can record parameters to a file using /SAVEINF="filename".
An example of a parameter file is:
[Setup]
Lang=default
Dir=C:\Program Files (x86)\Git
Group=Git
NoIcons=0
SetupType=default
Components=
Tasks=
PathOption=Cmd
SSHOption=OpenSSH
CRLFOption=CRLFAlways
More information on command-line parameters can be found at http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdline
You can find all the options for the Windows GIT installer using /?
, for example:
> Git-2.9.2-64-bit.exe /?
It will open a window with all the options.
As this help window shows, I think that either of the following commands will give you what you are looking for:
> Git-2.9.2-64-bit.exe /SILENT
or
> Git-2.9.2-64-bit.exe /VERYSILENT
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
.