git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Knobbe, FabianNext: Thomas Ferris Nicolaisen
Message 2 of 4 in “automatic git installation”
  1. Knobbe, FabianMay 12, 2015
  2. Johannes SchindelinMay 12, 2015
  3. Thomas Ferris NicolaisenMay 12, 2015
  4. Johannes SchindelinMay 13, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.