diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/installer.nsi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/installer.nsi b/scripts/installer.nsi index 9d309fdbe..c9dd87736 100644 --- a/scripts/installer.nsi +++ b/scripts/installer.nsi @@ -285,6 +285,13 @@ Section "XMake (required)" InstallExeutable SectionEnd +Section "Enable Long Path" LongPath + ${If} $NOADMIN == "false" + ; Enable long path + WriteRegDWORD ${HKLM} "SYSTEM\CurrentControlSet\Control\FileSystem" "LongPathsEnabled" 1 + ${EndIf} +SectionEnd + Section "Add to PATH" InstallPath ${If} $NOADMIN == "false" @@ -314,11 +321,13 @@ SectionEnd ; Language strings LangString DESC_InstallExeutable ${LANG_ENGLISH} "A cross-platform build utility based on Lua" LangString DESC_InstallPath ${LANG_ENGLISH} "Add xmake to PATH" +LangString DESC_LongPath ${LANG_ENGLISH} "Increases the maximum path length limit, up to 32,767 characters (before 256). This can be useful if a project has many recursive subfolders to make sure that the project is compiled without errors. A reboot might be required because some processes may have started before the new value was set" ; Assign language strings to sections !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${InstallExeutable} $(DESC_InstallExeutable) !insertmacro MUI_DESCRIPTION_TEXT ${InstallPath} $(DESC_InstallPath) +!insertmacro MUI_DESCRIPTION_TEXT ${LongPath} $(DESC_LongPath) !insertmacro MUI_FUNCTION_DESCRIPTION_END ;-------------------------------- |
