From 1c534ce8c21fab0be2a394ad73decc15e015693e Mon Sep 17 00:00:00 2001 From: shinchiro Date: Sat, 23 Dec 2023 21:43:06 +0800 Subject: [PATCH] installer: support long path in windows 10 Close #48 --- mpv-root/installer/mpv-install.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mpv-root/installer/mpv-install.bat b/mpv-root/installer/mpv-install.bat index 2dd80eb..40c8744 100644 --- a/mpv-root/installer/mpv-install.bat +++ b/mpv-root/installer/mpv-install.bat @@ -174,6 +174,9 @@ call :add_type "" "audio" "CUE Sheet" :: Register "Default Programs" entry call :reg add "HKLM\SOFTWARE\RegisteredApplications" /v "mpv" /d "SOFTWARE\Clients\Media\mpv\Capabilities" /f +:: Enable long paths in Windows 10 +call :reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d 1 /f + :: Add start menu link powershell "$s=(New-Object -COM WScript.Shell).CreateShortcut('%ProgramData%\Microsoft\Windows\Start Menu\Programs\mpv.lnk');$s.TargetPath='%mpv_path%';$s.Save()"