app/install_git.cmd hinzugefügt

This commit is contained in:
2025-08-27 09:29:12 +00:00
parent 3eea93c1b9
commit ec5695ccb9

47
app/install_git.cmd Normal file
View File

@@ -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