diff options
| author | A2va <[email protected]> | 2023-06-06 16:29:21 +0200 |
|---|---|---|
| committer | A2va <[email protected]> | 2023-06-06 16:29:21 +0200 |
| commit | 79ec23a4de0853f33f6cd9471b42aa23032cca85 (patch) | |
| tree | 3f21f712236749f8966a6b266a2c12e4c50b4a57 | |
| parent | a5fb305197612efc25c5f3c34bcba1e206378b8e (diff) | |
Remove git execution
| -rw-r--r-- | scripts/installer.nsi | 8 |
1 files changed, 1 insertions, 7 deletions
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 |
