Re: automatic git installation
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 12, 2015, 15:10 UTC
- Message-ID
- <623dfcd4547202a2c6eb399a6c0116ed@www.dscho.org>
- In-Reply-To
- <AM3PR01MB3742DD43DFAE5196C50A572E6DA0@AM3PR01MB374.eurprd01.prod.exchangelabs.com>
Hi Fabian,
On 2015-05-12 10:50, Knobbe, Fabian wrote:
> I would like to automatically install git with a script.
... on Windows.
> I already found some command line arguments to pass my settings to the setup routine, but I still don't know how to set "Adjust your PATH environment" to "Use Git from the Windows Command Prompt" without user interaction.
If you use a recorded silent installation [*1*], you can choose that option in the recording stage and that should be enough to select it during replay.
For non-Windows users: Git for Windows uses an InnoSetup-based installer that has the option to adjust the user's PATH to either include the entire Git for Windows binaries including all third-party libraries, or just the so-called Git wrapper (it is a lone `git.exe` inside a directory that does *not* add all the `.dll` files that would possibly conflict with other executables on the PATH).
Ciao, Johannes
Footnote *1*: https://github.com/msysgit/msysgit/wiki/Silent-or-Unattended-Installation