From ec5695ccb9cd2e05dbf65f7ee88393ba322a44f8 Mon Sep 17 00:00:00 2001 From: Peter Reichart Date: Wed, 27 Aug 2025 09:29:12 +0000 Subject: [PATCH] =?UTF-8?q?app/install=5Fgit.cmd=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/install_git.cmd | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 app/install_git.cmd diff --git a/app/install_git.cmd b/app/install_git.cmd new file mode 100644 index 0000000..e5240bd --- /dev/null +++ b/app/install_git.cmd @@ -0,0 +1,47 @@ +rem ------------------------------------------------------------ +rem Installationsroutine +rem ------------------------------------------------------------ + +rem --- Option: Download in ein temporäres Verzeichnis +rem --- Kann für z.B. für GLPI abgeschaltet werden +set SAVEPATH=%SYSTEMDRIVE%\TEMP\install +MKDIR %SAVEPATH% & CD /D %SAVEPATH% + +rem --- Download Basis-URL, Dateiname und TEMP-Verzeichnis +set VERS=2.51.0 +set BASEURL=https://github.com/git-for-windows/git/releases/download/v%VERS%.windows.1 +set PROG=Git-%VERS%-64-bit.exe + +rem --- Lade Installationsdatei herunter +curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% + +rem --- Erzeuge INI-Datei +( +echo [Setup] +echo Lang=default +echo Dir=C:\Program Files\Git +echo Group=Git +echo NoIcons=0 +echo SetupType=default +echo Components=gitlfs,assoc,assoc_sh,scalar +echo Tasks= +echo EditorOption=Notepad++ +echo CustomEditorPath= +echo DefaultBranchOption= +echo PathOption=Cmd +echo SSHOption=OpenSSH +echo TortoiseOption=false +echo CURLOption=OpenSSL +echo CRLFOption=CRLFAlways +echo BashTerminalOption=MinTTY +echo GitPullBehaviorOption=Merge +echo UseCredentialManager=Enabled +echo PerformanceTweaksFSCache=Enabled +echo EnableSymlinks=Disabled +echo EnablePseudoConsoleSupport=Disabled +echo EnableFSMonitor=Disabled +) > git.ini + +rem --- Silent-Installation des Programms: +%PROG% /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /LOADINF=git.ini +