From 79ec23a4de0853f33f6cd9471b42aa23032cca85 Mon Sep 17 00:00:00 2001 From: A2va <49582555+A2va@users.noreply.github.com> Date: Tue, 6 Jun 2023 16:29:21 +0200 Subject: Remove git execution --- scripts/installer.nsi | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'scripts') diff --git a/scripts/installer.nsi b/scripts/installer.nsi index 9257f235c..e446e699f 100644 --- a/scripts/installer.nsi +++ b/scripts/installer.nsi @@ -286,15 +286,9 @@ Section "XMake (required)" InstallExeutable SectionEnd Section "Enable Long Path" LongPath - ; Get git path from the registry - ReadRegStr $R0 ${HKLM} "SOFTWARE\GitForWindows" "InstallPath" ${If} $NOADMIN == "false" - ; In admin enable long path on both git system config and in registry + ; Enable long path WriteRegDWORD ${HKLM} "SYSTEM\CurrentControlSet\Control\FileSystem" "LongPathsEnabled" 1 - Exec '"$R0\cmd\git.exe" config --system core.longpaths true' - ${Else} - ; Enable only in git global config - Exec '"$R0\cmd\git.exe" config --global core.longpaths true' ${EndIf} SectionEnd -- cgit v1.3.1