diff options
| author | ruki <[email protected]> | 2023-06-07 08:43:20 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-07 08:43:20 +0800 |
| commit | dd792b81a49c0b01876e1a5224c270719a2124bc (patch) | |
| tree | 9aa8ca114dda1cbfbbd6b79096b20168072ba84b /scripts | |
| parent | 2082781e014220fb1830f91d016f65664844e38f (diff) | |
| parent | 4bce1b31261aee7af7b575441d71230acf97cb1b (diff) | |
Merge pull request #3821 from A2va/longpath
Long Path checkbox
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 ;-------------------------------- |
